/* =========================================
   Zephyrium JDM - Mobile Optimizations
   ========================================= */

/* Base mobile styles */
:root {
  --mobile-padding: 16px;
  --mobile-section-spacing: 60px;
  --mobile-element-spacing: 20px;
}

/* Fix for mobile viewport height issues */
@media (max-width: 767px) {
  .hero {
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
  }
  
  .mobile-menu {
    height: calc(var(--vh, 1vh) * 100);
  }
}

/* =========================================
   Global Mobile Adjustments
   ========================================= */

/* Improved container padding for mobile */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--mobile-padding);
  }

  /* Center content on mobile */
  .text-center-mobile {
    text-align: center;
  }

  /* Ensure proper overflow handling */
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Adjust section spacing */
  section {
    padding: var(--mobile-section-spacing) 0;
  }
}

/* =========================================
   Header & Navigation Optimizations
   ========================================= */

@media (max-width: 767px) {
  /* Header adjustments */
  .header {
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }

  /* Logo size adjustment */
  .logo {
    font-size: 24px;
  }

  .logo-japan {
    font-size: 10px;
  }

  /* Modern hamburger menu styling */
  .menu-toggle {
    width: 40px;
    height: 40px;
    margin-right: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1001;
    border-radius: 50%;
    transition: background 0.3s ease;
  }
  
  .menu-toggle:active {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .menu-line {
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  
  .menu-line:nth-child(1) {
    transform: translateY(-6px);
  }
  
  .menu-line:nth-child(2) {
    transform: translateY(6px);
  }
  
  .menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg);
  }
  
  .menu-toggle.active .menu-line:nth-child(2) {
    transform: rotate(-45deg);
  }

  /* Mobile menu improvements */
  .mobile-menu {
    padding: 100px 20px 60px;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
  }
  
  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-link {
    font-size: 22px;
    margin: 15px 0;
    text-align: center;
    width: 100%;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
  }
  
  .mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease, left 0.3s ease;
  }
  
  .mobile-menu-link:active::after {
    width: 100%;
    left: 0;
  }
  
  .btn-get-started-mobile {
    margin-top: 30px;
    width: 80%;
    max-width: 250px;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--color-accent), #ff5252);
    box-shadow: 0 10px 20px rgba(255, 59, 59, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .btn-get-started-mobile:active {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(255, 59, 59, 0.3);
  }
}

/* =========================================
   Hero Section Optimizations
   ========================================= */

@media (max-width: 767px) {
  /* Hero adjustments */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: hidden;
    position: relative;
  }

  .hero-content {
    width: 100%;
    margin-bottom: 15px;
    padding: 0 15px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.1;
  }
  
  .hero-title .line {
    display: block;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpLine 0.5s ease-out forwards;
  }
  
  .hero-title .line:nth-child(1) {
    animation-delay: 0.2s;
  }
  
  .hero-title .line:nth-child(2) {
    animation-delay: 0.4s;
  }
  
  .hero-title .line:nth-child(3) {
    animation-delay: 0.6s;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.8s forwards;
  }
  
  .btn-primary {
    padding: 8px 24px;
    font-size: 15px;
    margin: 20px 0 0 0 !important;
    border-radius: 30px;
    min-width: 180px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1s forwards;
    background: #ffffff !important;
    color: #121212 !important;
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
  }
  
  .btn-primary:active {
    transform: none !important;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    background: #f0f0f0 !important;
    margin: 20px 0 0 0 !important;
    position: relative !important;
    top: 0 !important;
  }

  /* Adjust hero carousel for mobile */
  .hero-visual {
    width: 100%;
    height: auto;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.2s forwards;
    position: relative;
  }

  .hero-carousel {
    height: auto;
    overflow: visible;
    width: 100%;
    position: relative;
  }

  .hero-slide {
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
  }
  
  .hero-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
  }

  .hero-image-container {
    height: 260px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
  }
  
  .hero-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  }

  /* Specs styling improvement */
  .hero-car-specs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0;
    position: relative;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 10px;
    transform: scale(0.85);
  }

  .spec {
    flex: 0 0 auto;
    padding: 8px 12px;
    margin: 2px;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: scale(0.9);
  }
  
  .spec:active {
    transform: translateY(1px) scale(0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .spec-name {
    font-size: 10px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-300);
  }

  .spec-value {
    font-size: 14px;
    font-weight: 600;
  }

  /* Hero carousel indicators - Hidden on mobile */
  .hero-carousel-nav {
    display: none; /* Hide carousel dots on mobile */
  }

  /* Customize scroll indicator for mobile */
  .scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeIn 0.5s ease-out 1.5s forwards;
    opacity: 0;
  }
  
  .scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
    margin-top: 6px;
    position: relative;
    overflow: hidden;
  }
  
  .scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    animation: scrollDown 1.5s ease-in-out infinite;
  }
  
  @keyframes scrollDown {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(100%);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInUpLine {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

/* =========================================
   Models Section Optimizations
   ========================================= */

@media (max-width: 767px) {
  /* Center section title */
  .section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  /* Improve carousel for touch */
  .carousel-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
  }

  .carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .model-carousel {
    padding: 20px 0;
    gap: 15px;
  }

  /* Optimize model cards */
  .model-card {
    flex: 0 0 85%;
    margin: 0;
    scroll-snap-align: center;
    min-width: 250px;
  }

  .model-image {
    height: 160px;
  }

  .model-details {
    padding: 15px;
  }

  .model-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .model-description {
    font-size: 14px;
    margin-bottom: 15px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Make buttons more touch-friendly */
  .btn-outline {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Center view all button */
  .view-all {
    margin-top: 25px;
    text-align: center;
  }
}

/* =========================================
   About Section Optimizations
   ========================================= */

@media (max-width: 767px) {
  .about-grid {
    flex-direction: column;
  }

  .about-content {
    width: 100%;
    margin-bottom: 30px;
  }

  .about-text {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat {
    flex: 0 0 calc(50% - 10px);
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-text {
    font-size: 14px;
  }

  .about-image-container {
    width: 100%;
    height: 250px;
  }
}

/* =========================================
   Testimonials Section Optimizations
   ========================================= */

@media (max-width: 767px) {
  .testimonials {
    display: block; /* Show testimonials section on mobile */
    padding: 50px 0;
    overflow: hidden;
    opacity: 1 !important; /* Ensure visibility */
    visibility: visible !important;
  }
  
  .testimonials .section-title {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .testimonials-slider {
    display: flex !important; /* Force display as flex */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 20px;
    opacity: 1 !important; /* Ensure visibility */
    visibility: visible !important;
  }
  
  .testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .testimonial-card {
    min-width: 100%;
    scroll-snap-align: center;
    opacity: 1 !important; /* Ensure visibility */
    transform: none !important; /* Prevent transform issues */
    position: relative !important; /* Force relative positioning */
    transition: opacity 0.3s ease;
    padding: 0 15px;
    visibility: visible !important;
    height: auto !important;
  }
  
  .testimonial-content {
    background-color: rgba(25, 25, 25, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .testimonial-nav {
    display: none; /* Hide the carousel dots on mobile */
  }
  
  /* Swipe indicator for testimonials */
  .testimonials::after {
    content: 'Swipe to see more';
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--color-gray-400);
    margin-top: 15px;
    opacity: 0.7;
    animation: fadeInOut 2s infinite;
  }
  
  @keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
  }
}

/* =========================================
   Contact Section Optimizations
   ========================================= */

@media (max-width: 767px) {
  .contact-grid {
    flex-direction: column;
  }

  .contact-info {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
  }

  .contact-details {
    justify-content: center;
  }

  .contact-item {
    margin-bottom: 15px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-form-container {
    width: 100%;
    padding: 20px;
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-group {
    margin-bottom: 0;
    width: 100%;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-label {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    display: block;
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: 14px;
    font-size: 16px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-align: center;
  }

  .form-textarea {
    min-height: 120px;
    resize: vertical;
  }

  /* Custom select styling for mobile */
  .custom-select-wrapper {
    width: 100%;
    margin-bottom: 0;
  }

  .custom-select-wrapper .select-arrow {
    right: 15px;
  }

  /* Submit button styling */
  .contact-form .btn-primary.full-width {
    background-color: #ffffff !important;
    color: #121212;
    font-weight: 600;
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 10px auto 0;
    width: 100%;
    max-width: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
  }

  .contact-form .btn-primary.full-width:active {
    transform: translateY(2px);
    background-color: #f0f0f0 !important;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  }
}

/* =========================================
   Footer Optimizations
   ========================================= */

@media (max-width: 767px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    margin-bottom: 30px;
  }

  .footer-links {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-heading {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav li {
    margin-bottom: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .copyright, .footer-note {
    font-size: 12px;
  }
}

/* =========================================
   Modal Optimizations
   ========================================= */

@media (max-width: 480px) {
  .modal {
    width: 90%;
    max-width: none;
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
  }

  .modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 1999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }

  .modal-header {
    padding: 15px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-body {
    padding: 15px;
  }

  .auth-form .form-group {
    margin-bottom: 15px;
  }

  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .social-auth-btn {
    padding: 10px;
    font-size: 14px;
  }
}

/* =========================================
   Swipe Functionality Enhancement
   ========================================= */

/* Add swipe indicators */
.swipe-indicator {
  display: none;
}

@media (max-width: 767px) {
  .swipe-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    color: var(--color-gray-400);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .swipe-indicator svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    animation: swipeAnimation 1.5s infinite;
  }

  @keyframes swipeAnimation {
    0% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(5px);
    }
    100% {
      transform: translateX(0);
    }
  }
}

/* =========================================
   Additional Touch Optimizations
   ========================================= */

@media (max-width: 767px) {
  /* Increase touch target sizes */
  button, 
  .nav-link, 
  .mobile-menu-link, 
  .btn-primary, 
  .btn-outline,
  .btn-text,
  .social-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Improve form elements for touch */
  input,
  select,
  textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  /* Add pull-to-refresh feeling */
  .model-carousel {
    padding-bottom: 10px;
    margin-bottom: 10px;
    position: relative;
  }

  /* Center everything on mobile */
  .hero-content,
  .section-title,
  .view-all,
  .about-content,
  .testimonial-card,
  .contact-info,
  .footer-brand,
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =========================================
   Performance Optimizations
   ========================================= */

@media (max-width: 767px) {
  /* Reduce animation complexity on mobile */
  * {
    will-change: auto !important; /* Override any will-change to prevent GPU memory consumption */
  }

  /* Disable heavy animations on mobile */
  .logo::before, .logo::after,
  .logo-text::before, .logo-text::after,
  .logo-japan::before, .logo-japan::after,
  .model-japan::before, .model-japan::after {
    display: none !important;
  }

  /* Simplify shadows and effects for better performance */
  .model-card, .btn-primary:not(.contact-form .btn-primary), .btn-outline, .btn-secondary,
  .btn-get-started, .hero-image, .about-image {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  }

  /* Use simpler gradients - excluding contact form button and hero button */
  .btn-primary:not(.contact-form .btn-primary), .btn-get-started, .btn-get-started-mobile {
    background: var(--color-accent) !important;
  }

  /* Disable parallax effects on mobile */
  .parallax-container, [data-parallax="true"] {
    transform: none !important;
  }

  /* Reduce filter complexity */
  img {
    filter: none !important;
  }

  /* Simplify backdrop filters for better performance */
  .header.scrolled {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

/* =========================================
   Print Styles (for completeness)
   ========================================= */

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .header, .footer, .hero-carousel-nav, 
  .carousel-dot, .menu-toggle, .mobile-menu,
  .btn-primary, .btn-outline, .btn-text, .view-all {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  p, blockquote, ul, ol, dl, table {
    page-break-inside: avoid;
  }
}

/* =========================================
   Emergency Fix for Contact Form Button
   ========================================= */

/* This rule has maximum specificity to override any other styling */
.contact .contact-form-container .contact-form button[type="submit"].btn-primary.full-width {
  background-color: #ffffff !important;
  color: #121212 !important;
  background-image: none !important;
  background: #ffffff !important;
}

.contact .contact-form-container .contact-form button[type="submit"].btn-primary.full-width:active {
  background-color: #f0f0f0 !important;
  color: #121212 !important;
  background-image: none !important;
  background: #f0f0f0 !important;
}

/* =========================================
   Emergency Fix for Hero Button
   ========================================= */

/* This rule has maximum specificity to override any other styling */
.hero .btn-primary,
.hero .btn-primary:link,
.hero .btn-primary:visited,
body .hero .btn-primary,
html body .hero .btn-primary {
  background-color: #ffffff !important;
  color: #121212 !important;
  background-image: none !important;
  background: #ffffff !important;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2) !important;
  margin-top: 20px !important; /* Add fixed margin to prevent collapse */
  border: none !important;
}

.hero .btn-primary:active,
.hero .btn-primary:focus,
body .hero .btn-primary:active,
html body .hero .btn-primary:active {
  background-color: #f0f0f0 !important;
  color: #121212 !important;
  background-image: none !important;
  background: #f0f0f0 !important;
  transform: translateY(2px) !important;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1) !important;
  margin-top: 20px !important; /* Maintain same margin when active */
  border: none !important;
}

/* =========================================
   Mobile Lightbox Improvements
   ========================================= */

@media (max-width: 767px) {
  /* Lightbox improvements for mobile */
  .lightbox {
    background-color: rgba(0, 0, 0, 0.95);
  }
  
  .lightbox-image {
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }
  
  .lightbox.zoomed .lightbox-image {
    transform: scale(1.8);
    transition: transform 0.3s ease;
  }
  
  .lightbox.zoomed .lightbox-nav,
  .lightbox.zoomed .lightbox-counter {
    opacity: 0;
    pointer-events: none;
  }
  
  .lightbox.zoomed .lightbox-close {
    opacity: 0.5;
  }
  
  /* Make sure the mobile thumbnails are properly sized */
  .popup-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .popup-gallery-thumbs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .popup-gallery-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s ease;
  }
  
  .popup-gallery-thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff;
  }
  
  .popup-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
} 