/* CSS Custom Properties */
:root {
  --main-blue: #007bff;
  --light-blue: #eff3f8;
  --main-blue-hover: #0056b3;
  --main-border-color: #e5e7eb;
}

/* ===== FONT FAMILY DECLARATIONS ===== */
/* Base font for body and most text */
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: white;
}

/* Headings and navigation use Roboto */
h1, h2, h3, h4, h5, h6,
.hero-main-title,
.hero-subtitle,
.form-title,
.sidebar-title,
.nav-link,
.logo-text,
.footer-header {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Buttons use Roboto for consistency */
.btn,
.hero-btn-primary,
.hero-btn-secondary,
.action-btn,
.upload-btn,
.login-btn {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

a {
  text-decoration: none;
  color: #0071eb;
}

/* Main button color */
.btn-primary {
  background-color: var(--main-blue);
}

main {
  margin-bottom: 100px;
}

.alert-success {
  background-color: var(--light-blue);
}

.main-bg {
  background-color: white;
}

.card {
  border: none;
  background-color: transparent;
}

.image-container {
  position: relative;
}

/* Enhanced faded style for unapproved comments */
.faded {
  opacity: 0.6;
  background-color: #f8f9fa;
  border-left: 3px solid #ffc107;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  color: #6c757d;
  font-style: italic;
}

/* Enhanced approval message styling */
.approval {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-top: 10px;
  font-weight: 500;
  display: inline-block;
}

/* ===== HERO SECTION STYLES ===== */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.author-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem 0.25rem 0;
  border-radius: 15px;
  font-weight: 500;
}

.date-text {
  opacity: 0.9;
}


/* ===== SIDEBAR STYLES ===== */
.sidebar-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.prompt-metadata .fa-calendar-alt {
  margin: 0 2px 0 4px;
}

/* ===== TAGS STYLES ===== */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  background: var(--main-blue);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tag-badge:hover {
  background: var(--main-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== COMMENTS STYLES ===== */
/* This the label above the comment field on the detail list page */
#commentForm .form-label {
  display: none;
}

.comment-card {
  background: #fff;
  border: 2px solid var(--main-border-color);
  border-radius: 8px;
}

.comment-form {
  margin-top: 1rem;
}

.posting-as {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== Copy Button Styles ===== */
.copy-btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  color: var(--main-blue-hover);
  border-color: var(--main-blue-hover);
  font-weight: 500;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-btn i {
  font-size: 0.75rem;
}

.btn-success:focus {
  background-color: var(--main-blue);
}

/* ===== MASONRY LAYOUT - FLEXBOX COLUMN APPROACH ===== */
.masonry-container {
  max-width: 100%;
  margin: 0;
  padding: 20px 40px;
  width: 100%;
}

/* Masonry grid flexbox layout */
.masonry-grid {
  display: flex;
  gap: 15px;
  width: 100%;
}

.masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.masonry-item {
  display: block;
  width: 100%;
  background: none;
  border-radius: 8px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.masonry-item.new-item {
  animation: slideInFade 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

@keyframes slideInFade {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.prompt-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  width: 100%;
  height: fit-content;
}

.prompt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Image wrapper */
.image-wrapper {
  position: relative;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Clickable link overlay */
.card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  text-decoration: none;
}

/* Overlay styles - Bottom gradient only */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 90%,
      rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.prompt-card:hover .card-overlay {
  opacity: 1;
}

/* Overlay content */
.overlay-top {
  display: flex;
  justify-content: flex-start;
  opacity: 0;
}

.overlay-bottom {
  display: flex;
  align-items: center;
  opacity: .9;
  position: absolute;
  height: 40px;
  width: 100%;
  bottom: 5px;
  padding: 0 10px 0 20px;
  z-index: 99;
}

.user-info {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.platform-info {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

.platform-info i {
  margin-right: 4px;
}

.heart-counter {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  width: 80px;
  margin-left: auto;
  margin-right: 20px;
}

.heart-counter i {
  margin-right: 4px;
}



/* Mobile video optimizations */
@media (max-width: 768px) {
    /* Disable video autoplay on mobile to save data */
    
    .video-thumbnail {
        opacity: 1 !important;
    }
    
    .video-play-icon {
        opacity: 1 !important;
    }
    
    /* Add click-to-play on mobile */
    .video-card {
        cursor: pointer;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    
    .video-thumbnail {
        opacity: 1 !important;
    }
}

/* ===== LOAD MORE BUTTON STYLING ===== */
.load-more-container {
  margin: 60px auto;
  max-width: 300px;
}

#load-more-btn {
  background: var(--main-blue);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--main-blue-hover);
}

#loading-spinner {
  color: #666;
  font-size: 1.1rem;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
  position: sticky;
  top: 20px;
  z-index: 10;
}

.button-group {
  background: none;
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0;
  justify-content: right;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 20px;
  background: var(--light-blue);
  color: var(--main-blue-hover);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0 12px;
  white-space: nowrap;
}

.action-btn:hover {
  background: var(--main-blue);
  text-decoration: none;
  transform: translateY(-1px);
  color: white;
}

.action-btn i {
  font-size: 18px;
}

/* Like button specific styles */
.btn-like {
  background: var(--light-blue);
  color: var(--main-blue-hover);
  padding: 0 16px;
  min-width: auto;
  font-weight: 700;
}

.btn-like:hover {
  background: var(--main-blue);
  color: white;
}

.btn-like.liked {
  background: var(--main-blue);
  color: white;
}

.btn-like.liked:hover {
  background: var(--main-blue-hover);
}

.like-count {
  margin-left: 4px;
  font-weight: 600;
}

/* ===== MODERN FORM STYLING ===== */
/* Form Container */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid #f1f3f4;
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.form-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Field Groups */
.field-group {
  margin-bottom: 24px;
}

/* Labels */
.field-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  border: 2px solid var(--main-border-color);
}

/* FIXED: Input Fields - Basic Styling with corrected syntax */
.edit-form .form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--main-border-color);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--light-blue);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-form .form-control:focus {
  outline: none;
  border-color: var(--main-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background: #ffffff;
}

/* Form input classes from forms.py */
.modern-input,
.modern-textarea,
.modern-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.modern-input:focus,
.modern-textarea:focus,
.modern-select:focus {
  border-color: var(--main-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Help Text */
.field-help {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.4;
}

/* Button Styling */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-primary {
  background: var(--main-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--main-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

/* Red button - mostly used when the user wants to delete a prompt or comment */
.btn-danger {
  border-radius: 100px;
  padding: 14px 28px;
}

/* Small buttons - mainly for the comment form */
.btn-small {
  font-size: 14px;
  padding: 10px 10px;
  min-width: 96px;
  background-color: var(--light-blue);
  color: var(--main-blue-hover);
}

.btn-small:hover {
  background-color: var(--main-blue);
}

/* Popular Tags Styling */
.popular-tags {
  margin-top: 12px;
}

.popular-tags-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
  display: block;
}

.popular-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-option {
  background: var(--light-blue);
  color: var(--main-blue);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.tag-option:hover {
  background: var(--main-blue);
  color: white;
  transform: translateY(-1px);
}

/* Modern Button Classes */
.modern-btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.modern-btn-primary {
  background: var(--main-blue);
  color: white;
}

.modern-btn-primary:hover {
  background: var(--main-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

.modern-btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.modern-btn-secondary:hover {
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

/* Footer styling */
.modern-form-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.modern-form-footer-text {
  color: #6b7280;
  font-size: 0.95rem;
}

/* ===== FILE UPLOAD STYLING ===== */
/* Current Image Display */
.current-image {
  margin-bottom: 16px;
}

.current-image-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.current-image-preview {
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
}

.current-image-preview:hover {
  border-color: var(--main-blue);
  transform: scale(1.02);
}

/* File Upload Area */
.file-upload-area {
  position: relative;
  width: 100%;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: #6b7280;
  font-weight: 500;
  min-height: 80px;
}

.file-upload-label:hover {
  border-color: var(--main-blue);
  background: var(--light-blue);
  color: var(--main-blue);
}

.file-upload-label i {
  font-size: 24px;
  margin-right: 12px;
  color: #9ca3af;
}

.file-upload-label:hover i {
  color: var(--main-blue);
}

/* ===== SELECT DROPDOWN WITH ARROW ===== */
.edit-form .modern-select-dropdown,
select.modern-select-dropdown {
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 30px;
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.edit-form .modern-select-dropdown:focus,
select.modern-select-dropdown:focus {
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Fallback for specific select element */
select#id_ai_generator {
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ===== TAG FILTER HEADER STYLES ===== */
.tag-filter-header {
  background: var(--light-blue);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.tag-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.tag-name {
  color: var(--main-blue);
  font-weight: 700;
}

.tag-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  margin: 20px 0;
}

.tag-filter-header .btn {
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
  color: var(--main-blue-hover);
  border-color: var(--main-blue-hover);
  font-weight: 600;
}

.tag-filter-header .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  background-color: var(--main-blue);
  color: white;
  border-color: var(--main-blue);
}

/* ===== HERO SECTION WITH ORGANIC BLUR EFFECT ===== */
.hero-section {
  padding: 20px 0 0px 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  height: auto;
  padding-top: 50px;
  min-height: 787px;
}

/* Primary organic blur shape */
.hero-section::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 16%;
  z-index: -10;
  width: 38%;
  height: 60%;
  filter: blur(80px);
  background: conic-gradient(
      from 45deg at 97% 50%,
      rgba(99, 102, 241, 0.3) 0deg,
      rgba(168, 85, 247, 0.25) 120deg,
      rgba(244, 114, 182, 0.2) 240deg,
      rgba(59, 130, 246, 0.3) 360deg);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transform: rotate(15deg);
  animation: float 20s ease-in-out infinite;
}

/* Floating animation for organic movement */
@keyframes float {
  0%, 100% {
      transform: rotate(15deg) translateY(0px) scale(1);
  }
  25% {
      transform: rotate(18deg) translateY(-10px) scale(1.02);
  }
  50% {
      transform: rotate(12deg) translateY(-5px) scale(0.98);
  }
  75% {
      transform: rotate(20deg) translateY(-15px) scale(1.01);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 2rem;
}

.hero-main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-brand {
  background: linear-gradient(135deg, var(--main-blue-hover) 0%, var(--main-blue) 40%, var(--main-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
  background: var(--main-blue);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
  color: white;
  text-decoration: none;
}

.hero-btn-secondary {
  background: white;
  color: var(--main-blue);
  border: 2px solid var(--main-blue);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
  background: var(--main-blue);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

/* ===== HERO IMAGE GALLERY STYLES ===== */
.hero-gallery-container {
  overflow: hidden;
  position: relative;
}

.hero-image-grid {
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  height: 100%;
  width: 100%;
  align-items: flex-start;
}

.image-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: none;
}

/* Column layouts */
.column-1 {
  padding-top: 2rem;
  order: 3;
}

.column-2 {
  padding-top: 10em;
  order: 2;
}

.column-2 .image-item:last-child,
.column-1 .image-item:last-child {
  margin-bottom: 0;
}

.column-2 .image-item:first-child {
  margin-top: 0;
}

.column-3 {
  padding-top: 22rem;
  order: 1;
}

.column-1, .column-2, .column-3 {
  width: 30%;
}

/* Image item styling */
.image-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(55, 65, 81, 0.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  aspect-ratio: 2 / 3;
  max-height: 245px;
  margin: .4em 0;
}

.image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image overlay for subtle border effect */
.image-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.1);
}

footer {
  box-shadow: -1px -3px 3px rgba(0, 0, 0, 0.1);
}

/* ===== MODALS ===== */
.modal-footer {
  justify-content: center;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Large screens adjustments */
@media (max-width: 1200px) {
  .hero-section {
      padding: 60px 0;
      min-height: 617px;
  }
  
  .hero-description {
      max-width: none;
  }
  
  .hero-section::before {
      top: 8%;
  }
  
  .hero-btn-secondary {
      display: none;
  }
  
  .hero-gallery-container {
      margin-left: 1rem;
  }
  
  .column-2 {
      padding-top: 0em
  }
  
  .column-3 {
      padding-top: 7rem
  }
  
  .hero-content {
      padding-right: 0;
  }
  
  .column-1 {
      display: none;
  }
  
  .column-2, .column-3 {
      width: 40%;
  }
}

/* Medium screens (991px and below) */
@media (max-width: 991px) {
  .hero-section {
      margin-top: 60px;
      overflow: unset;
      min-height: auto;
      padding: 0;
  }
  
  .hero-main-title {
      font-size: 2.5rem;
  }
  
  .hero-content {
      padding-right: 0;
      text-align: center;
      margin-bottom: 3rem;
  }
  
  .hero-actions {
      justify-content: center;
  }
  
  .hero-gallery-container-shell {
      display: none;
  }
}

@media (max-width: 768px) {
  .form-actions {
      flex-direction: column;
  }
}

@media (max-width: 500px) {
  .hero-section {
      min-height: 450px;
  }
}
/* ===== ALERT UNDO BUTTON STYLING ===== */
.alert form button.btn-link {
    text-decoration: none;
    padding: 0;
    margin: 0;
    vertical-align: baseline;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
}

.alert form button.btn-link:hover {
    text-decoration: underline;
}

.alert form button.btn-link:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Undo button loading state */
.alert form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert form button[disabled]::after {
    content: '...';
    animation: dots 1s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}
