/* ============================================
   ELITE MOTORS — RESPONSIVE SYSTEM
   Mobile-first overrides for all breakpoints
   Loaded AFTER styles.css to override desktop defaults
   ============================================ */

/* ============================================
   GLOBAL SAFETY & PERFORMANCE
   ============================================ */

/* FLUID TYPOGRAPHY */
:root {
  --fluid-h1: clamp(2rem, 8vw, 5rem);
  --fluid-h2: clamp(1.75rem, 6vw, 3rem);
  --fluid-h3: clamp(1.25rem, 4vw, 2rem);
  --fluid-p: clamp(0.875rem, 2vw, 1.125rem);
}

/* Prevent horizontal scroll globally */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

/* Prevent Flexbox/Grid Blowouts on Mobile */
.flex-parent>*,
.portfolio-grid>* {
  min-width: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  padding-right: clamp(1rem, 5vw, 2rem);
  padding-left: clamp(1rem, 5vw, 2rem);
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-title-line {
  font-size: var(--fluid-h1) !important;
}

.section-title,
.product-section-title {
  font-size: var(--fluid-h2) !important;
}

h3,
.about-world-title,
.showroom-section-title {
  font-size: var(--fluid-h3) !important;
}

p,
.feature-item,
.story-text,
.sell-subtitle {
  font-size: var(--fluid-p) !important;
}

/* Product/Image Safe Scaling */
.product-image-container img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.car-card-image img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

/* Brand Portfolio Grid is handled natively by portfolio.css */



/* Safe viewport height for mobile (avoids URL bar issues) */
@supports (height: 100svh) {
  .hero {
    height: 100svh;
  }
}

/* Fluid images and videos */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Reduced motion for accessibility & low-end devices */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .services-track {
    animation: none !important;
  }

  .hover-lift:hover {
    transform: none !important;
  }
}

/* Minimum tap targets */
@media (pointer: coarse) {

  a,
  button,
  [role="button"],
  input,
  select,
  textarea,
  .action-btn,
  .nav-btn,
  .gallery-expand-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================================
   BREAKPOINT: ≤1280px (Small Laptops)
   ============================================ */
@media (max-width: 1280px) {
  .sell-section {
    padding: 90px 0;
  }

  .why-section {
    padding: 80px 0;
  }

  .booking-section {
    padding: 80px 0;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* ============================================
   BREAKPOINT: ≤1024px (Tablets Landscape)
   ============================================ */
@media (max-width: 1024px) {

  /* Why Us — 2 col intermediate step (was jumping 3→1) */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .sell-section {
    padding: 70px 0;
  }

  /* Sell features already goes 1-col at 768, add 2-col at 1024 bridge */
  .sell-features {
    gap: 12px;
  }

  /* Gallery section padding */
  .gallery-section {
    padding: 70px 0 90px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Showroom card responsive */
  .showroom-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .showroom-link {
    align-self: flex-start;
  }

  /* Tablet Car Carousel & Shop by Style Carousel */
  .car-card {
    width: 45vw;
    max-width: 340px;
    scroll-snap-align: center;
  }

  .cars-carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 var(--container-padding);
  }

  .car-style-card {
    width: 45vw;
    min-width: 240px;
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  .car-style-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Product showcase padding */
  .product-showcase {
    padding: 60px 0 100px;
  }

  .product-showcase .container {
    padding: 0 var(--space-6);
  }
}

/* ============================================
   BREAKPOINT: ≤768px (Tablets Portrait / Large Phones)
   ============================================ */
@media (max-width: 768px) {

  /* Brand Logos handled by portfolio.css */

  /* Nav Fixes */
  .nav-actions {
    gap: 0.75rem;
  }

  .nav-menu-btn,
  .nav-phone,
  .nav-service-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }

  .menu-link {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    padding: 0.75rem 0;
  }

  /* === HERO === */
  .hero {
    min-height: auto;
    height: 100svh;
    height: 100vh;
    /* fallback */
  }

  .hero-content {
    padding: var(--space-6);
    padding-left: var(--space-6);
    max-width: 100%;
  }

  .hero-title-line {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-8);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-scroll {
    bottom: 20px;
  }

  .scroll-line {
    height: 40px;
  }

  /* === PRODUCT SHOWCASE (CRITICAL) === */
  .product-showcase {
    padding: 40px 0 60px;
  }

  .product-showcase .container {
    padding: 0 var(--space-4);
  }

  .product-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .product-nav {
    align-self: flex-end;
  }

  .product-slide-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: var(--radius-xl);
    width: 100%;
    margin: 0;
  }

  .product-image-section {
    min-height: 240px;
    padding: var(--space-4);
    width: 100%;
  }

  .product-image-container {
    padding: var(--space-2);
    width: 100%;
  }

  .product-image-container img {
    max-height: 280px;
    width: 100%;
    object-fit: contain;
  }

  .slide-gallery-nav {
    width: 40px;
    height: 40px;
  }

  .product-info-section {
    padding: var(--space-5) var(--space-5);
    width: 100%;
  }

  .product-car-name {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .product-price {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }

  .product-specs-row {
    gap: var(--space-4);
    flex-wrap: wrap;
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
  }

  .product-spec .spec-value {
    font-size: 1rem;
  }

  .overview-features {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .product-footer {
    padding-top: var(--space-4);
  }

  .footer-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }

  .enquire-btn,
  .view-details-btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
  }

  /* === CAR CARDS (Recently Parked) === */
  @media (max-width: 640px) {
    .car-card {
      width: 85vw;
      max-width: 340px;
      scroll-snap-align: center;
    }

    .cars-carousel {
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scroll-padding: 0 var(--container-padding);
      width: 100vw;
      margin-left: calc(-1 * var(--container-padding));
      padding: 0 var(--container-padding);
    }

    .cars-track {
      gap: var(--space-4);
    }

    /* === CAR STYLE SLIDER === */
    .car-style-slider {
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 20px;
      width: 100%;
    }

    .car-style-card {
      width: 60vw;
      min-width: 240px;
      scroll-snap-align: start;
      flex: 0 0 auto;
    }
  }

  /* === SERVICES MARQUEE === */
  .elevate-section .service-card {
    width: 280px;
    height: 180px;
  }

  /* === SELL SECTION === */
  .sell-section {
    padding: 60px 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
  }

  .sell-header {
    margin-bottom: 32px;
  }

  .sell-badge {
    font-size: 0.7rem;
    padding: 8px 16px;
    margin-bottom: 20px;
  }

  .sell-subtitle {
    font-size: 1.05rem;
  }

  .sell-cta {
    padding: 16px 28px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    display: flex;
  }

  /* === WHY US SECTION === */
  .why-section {
    padding: 60px 0;
  }

  .why-section .section-header.centered {
    margin-bottom: 40px;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-5);
  }

  .why-card {
    padding: 32px 24px;
  }

  /* === GALLERY SECTION === */
  .gallery-section {
    padding: 60px 0 80px;
  }

  .gallery-section .section-header {
    margin-bottom: 32px;
  }

  /* === FOOTER === */
  .footer-bottom {
    padding: var(--space-5) 0;
  }

  .menu-footer {
    padding: var(--space-6) var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }

  /* === BOOKING / SERVICE FORM === */
  .booking-section {
    padding: 60px 0;
  }

  .booking-container {
    padding: 30px 20px;
    margin: 0 var(--container-padding);
  }

  .booking-header h2 {
    font-size: 1.75rem;
  }

  /* === LOCATION === */
  .location-section {
    padding: 50px 0;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* === LIGHTBOX (product & gallery) === */
  .slide-lightbox-nav,
  .fullscreen-nav {
    width: 40px;
    height: 40px;
  }

  .slide-lightbox-prev,
  .fullscreen-prev {
    left: 8px;
  }

  .slide-lightbox-next,
  .fullscreen-next {
    right: 8px;
  }

  .slide-lightbox-close,
  .fullscreen-close {
    top: 12px;
    right: 12px;
  }
}

/* ============================================
   BREAKPOINT: ≤640px (Large Phones)
   ============================================ */
@media (max-width: 640px) {

  /* Navbar adjustments */
  .nav-logo img {
    height: 50px;
    width: 50px;
  }

  .navbar {
    padding: var(--space-3) 0;
  }

  /* Hero fine-tuning */
  .hero-title-line {
    font-size: clamp(2rem, 11vw, 4rem);
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-4);
  }

  /* Product info tighter */
  .product-info-section {
    padding: var(--space-4);
  }

  .product-title-row {
    margin-bottom: var(--space-4);
  }

  .product-overview {
    margin-bottom: var(--space-5);
  }

  /* Sell section tighter */
  .sell-section {
    padding: 48px 0;
  }

  .sell-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .sell-feature {
    padding: 14px 18px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .product-section-title {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }
}

/* ============================================
   BREAKPOINT: ≤480px (Standard Phones)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.875rem;
  }

  /* Removed .portfolio-grid and .gallery-masonry overrides that broke mobile JS/columns */

  /* === HERO === */
  .hero-content {
    padding: var(--space-4);
    padding-top: 100px;
  }

  .hero-title-line {
    font-size: clamp(1.75rem, 10vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: 0.8rem;
  }

  .hero-scroll {
    display: none;
  }

  /* === PRODUCT SHOWCASE === */
  .product-showcase {
    padding: 32px 0 48px;
  }

  .product-image-section {
    min-height: 200px;
    padding: var(--space-3);
  }

  .product-image-container img {
    max-height: 200px;
  }

  .product-badge {
    font-size: 0.6rem;
    padding: 3px var(--space-2);
  }

  .product-info-section {
    padding: var(--space-4) var(--space-3);
  }

  .product-specs-row {
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .product-spec .spec-label {
    font-size: 0.65rem;
  }

  .product-spec .spec-value {
    font-size: 0.875rem;
  }

  .overview-header h4 {
    font-size: 0.75rem;
  }

  .overview-extra {
    flex-direction: column;
    gap: var(--space-2);
  }

  .slide-gallery-nav {
    width: 36px;
    height: 36px;
  }

  .slide-gallery-nav svg {
    width: 16px;
    height: 16px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  /* === CAR CARDS === */
  .car-card {
    width: 88vw;
  }

  .car-card-title {
    font-size: 1rem;
  }

  .car-card-price {
    font-size: 1.1rem;
  }

  /* === SERVICES MARQUEE === */
  .elevate-section .service-card {
    width: 240px;
    height: 160px;
  }

  .service-card-title {
    font-size: 1.1rem;
  }

  /* === ABOUT === */
  .about-image-side {
    min-height: 220px;
  }

  .about-main,
  .about-world {
    padding: 24px 16px;
  }

  .about-tagline {
    font-size: 0.65rem;
  }

  .about-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: 20px;
  }

  .btn-outline-white {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .about-world-title {
    font-size: 1rem;
  }

  .world-card {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  /* === SELL === */
  .sell-section {
    padding: 36px 0;
  }

  .sell-features {
    gap: 10px;
    margin-bottom: 32px;
  }

  .sell-feature {
    padding: 12px 14px;
    gap: 10px;
  }

  .sell-feature span {
    font-size: 0.85rem;
  }

  .sell-feature svg {
    width: 18px;
    height: 18px;
  }

  .sell-cta {
    padding: 14px 24px;
    font-size: 0.85rem;
  }

  /* === WHY US / SERVICES === */
  .why-section {
    padding: 48px 0;
  }

  .why-card {
    padding: 28px 20px;
  }

  .why-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .why-icon svg {
    width: 28px;
    height: 28px;
  }

  .why-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .why-text {
    font-size: 0.875rem;
  }

  .services-grid .service-card {
    padding: var(--space-5) var(--space-4);
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-3);
  }

  .service-icon svg {
    width: 26px;
    height: 26px;
  }

  .service-title {
    font-size: 1.05rem;
  }

  .service-desc {
    font-size: 0.875rem;
  }

  /* === GALLERY === */
  .gallery-section {
    padding: 40px 0 60px;
  }

  .gallery-section .section-header {
    margin-bottom: 24px;
  }

  .gallery-section .section-tag {
    font-size: 0.7rem;
  }

  .gallery-section .section-tag::before,
  .gallery-section .section-tag::after {
    width: 24px;
  }

  .gallery-expand-btn {
    padding: 12px 28px;
    font-size: 0.8rem;
  }

  /* === FOOTER === */
  .footer-service-card {
    padding: var(--space-5) var(--space-4);
  }

  .service-card-title {
    font-size: 0.875rem;
  }

  .footer-showroom-section {
    padding: var(--space-6) 0;
  }

  .footer-bottom {
    padding: var(--space-4) 0;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }

  /* === BOOKING FORM === */
  .booking-container {
    padding: 24px 16px;
  }

  .booking-header h2 {
    font-size: 1.5rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 14px;
    font-size: 0.9rem;
  }

  .form-submit-btn {
    padding: 16px;
    font-size: 0.9rem;
  }

  /* === LOCATION === */
  .location-section {
    padding: 36px 0;
  }

  /* === MODALS === */
  .success-modal {
    padding: 28px 20px;
  }

  .modal-content {
    padding: var(--space-5);
  }

  .modal-title {
    font-size: 1.25rem;
  }

  /* === TRUST STRIP === */
  .trust-grid {
    gap: var(--space-4);
  }

  .trust-item {
    font-size: 0.75rem;
    gap: var(--space-2);
  }

  /* === WHATSAPP FLOAT === */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: var(--space-4);
    right: var(--space-4);
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* === FULLSCREEN MENU === */
  .menu-logo img {
    height: 50px;
    width: 50px;
  }

  .menu-content {
    padding: var(--space-4);
  }

  .menu-link {
    font-size: clamp(1.25rem, 5vw, 2rem);
    padding: var(--space-3) 0;
  }
}

/* ============================================
   BREAKPOINT: ≤360px (Small Phones)
   ============================================ */
@media (max-width: 360px) {
  :root {
    --container-padding: 0.75rem;
  }

  .hero-title-line {
    font-size: clamp(1.5rem, 9vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .product-car-name {
    font-size: 1.15rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-specs-row {
    gap: var(--space-2);
  }

  .product-spec .spec-value {
    font-size: 0.8rem;
  }

  .car-card {
    width: 92vw;
  }

  .sell-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .sell-feature span {
    font-size: 0.8rem;
  }

  .about-title {
    font-size: 1.15rem;
  }

  .gallery-masonry {
    column-gap: 8px;
  }

  .gallery-item {
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .menu-link {
    font-size: 1.15rem;
  }

  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
  }
}

/* ============================================
   SAFE AREA INSETS (Notched Phones)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .fullscreen-menu {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .footer-bottom {
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
    right: calc(var(--space-6) + env(safe-area-inset-right));
  }
}

/* ============================================
   CAR DETAIL PAGE — RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 768px) {
  .car-detail-hero {
    padding-top: 80px;
  }

  .car-header-info {
    gap: var(--space-3);
  }

  .car-name {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  .car-price {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  /* ENLARGED GALLERY FOR MOBILE */
  .car-gallery {
    aspect-ratio: 4/3;
    min-height: 320px;
    border-radius: var(--radius-lg);
  }

  .gallery-main {
    padding: var(--space-4);
  }

  .gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .car-info {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .car-detail-hero {
    padding-top: 70px;
  }

  .car-name {
    font-size: 1.35rem;
  }

  .car-price {
    font-size: 1.15rem;
  }

  .car-stats {
    gap: var(--space-3);
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-value {
    font-size: 0.875rem;
  }

  .car-info {
    padding: var(--space-3);
  }

  /* ENLARGED GALLERY FOR SMALL PHONES */
  .car-gallery {
    aspect-ratio: 1/1;
    min-height: 300px;
  }

  .gallery-main {
    padding: var(--space-3);
  }

  .gallery-badge {
    padding: var(--space-1) var(--space-3);
    font-size: 0.625rem;
  }

  .action-btn {
    padding: var(--space-3) var(--space-4);
    font-size: 0.8rem;
  }

  .compare-card {
    max-width: 100%;
  }

  .compare-card img {
    height: auto;
  }
}

/* ============================================
   COLLECTION PAGE — RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 480px) {
  .collection-hero {
    padding: 110px 0 40px;
  }

  .collection-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .card-name {
    font-size: 1.15rem;
  }

  .card-price {
    font-size: 0.95rem;
  }

  .card-image {
    height: 180px;
  }

  .card-specs {
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
  }

  .spec-value {
    font-size: 0.8rem;
  }

  .btn-callback {
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  .btn-whatsapp {
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   SCROLL SNAP for Car Carousel (Touch-friendly)
   ============================================ */
@media (max-width: 768px) {
  .cars-track {
    scroll-snap-type: x mandatory;
  }

  .car-card-link {
    scroll-snap-align: center;
  }

  /* Shop by car style — snap cards */
  .car-style-slider {
    scroll-snap-type: x mandatory;
  }

  .car-style-card {
    scroll-snap-align: start;
  }

  /* Similar cars carousel */
  .similar-section .cars-track {
    scroll-snap-type: x mandatory;
  }
}

/* ==============================================================
   MOBILE RESPONSIVENESS PATCHES
   ============================================================== */
html,
body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
}


.gallery-section,
.service-section,
.footer-showroom-section {
  position: relative !important;
  height: auto !important;
  margin-top: 0 !important;
  z-index: 1;
  clear: both;
}

@media (max-width: 768px) {
  .gallery-masonry {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    transform: none !important;
    /* Removed max-height: none and overflow: visible overrides to restore "View More" logic */
  }

  .gallery-section {
    padding-bottom: 60px !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {

  .gallery-masonry,
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

.brand-card {
  width: 100% !important;
  padding: 16px !important;
  aspect-ratio: 1 / 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.brand-logo {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.brand-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-width: clamp(40px, 15vw, 70px) !important;
  max-height: clamp(40px, 15vw, 70px) !important;
}