/* =============================================================================
   GALLERY PAGE STYLES (Updated)
   Purpose:
   - Clean, responsive gallery layout with accessible pagination controls
   - Brand-locked colors (Grenier): #2e0c5e (Deep Royal Purple), #facc15 (Amber)
   - Smooth, reduced-motion-friendly transitions
   - Consistent “page show/hide” behavior (single source of truth)
   - Lightbox modal styling matched to brand
   ========================================================================== */

/* ============================================================================
   THEME TOKENS (Brand Lock v50.0)
   ========================================================================== */
:root {
  --brand-purple: #2e0c5e; /* Deep Royal Purple */
  --brand-amber: #facc15; /* Vibrant Amber Yellow-Gold */
  --ink-900: #1a1a1a; /* Very dark neutral */
  --ink-700: #2c3e50; /* Deep slate for headings */
  --ink-600: #333333; /* Dark neutral text */
  --ink-500: #6c757d; /* Muted body text */
  --bg-100: #f8f9fa; /* Light neutral background */
  --bg-200: #f0f0f0; /* Light skeleton shimmer */
  --bg-300: #e0e0e0; /* Neutral fallback/skeleton */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.15);
  --radius-md: 12px;
  --radius-lg: 15px;
  --space-xl: 80px;
  --space-lg: 60px;
  --space-md: 50px;
  --space-sm: 40px;
  --trans-fast: 0.2s ease-out;
  --trans-med: 0.3s ease;
  --trans-slow: 0.5s ease-in-out;
}

/* Prefer reduced motion: tone down transitions/animations for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   SECTION: GALLERY SECTION WRAPPER
   ========================================================================== */

.gallery__section,
#gallery-section {
  /* Keep both selectors to support existing markup */
  padding: var(--space-xl) 0;
  background-color: var(--bg-100); /* #f8f9fa */
  min-height: 100vh;
}

.gallery__section.overhid {
  overflow: hidden;
}

/* On smaller screens, tighten vertical rhythm */
@media (max-width: 991px) {
  .gallery__section,
  #gallery-section {
    padding: var(--space-lg) 0;
  }
}
@media (max-width: 767px) {
  .gallery__section,
  #gallery-section {
    padding: var(--space-md) 0;
  }
}
@media (max-width: 575px) {
  .gallery__section,
  #gallery-section {
    padding: var(--space-sm) 0;
  }
}

/* Optional top offset for pages where header overlaps; keep !important as before */
#gallery-section {
  padding-top: 200px !important; /* preserves your original spacing to clear logo/nav */
  padding-bottom: 100px !important;
}

/* ============================================================================
   SECTION: TITLE BLOCK
   ========================================================================== */

.gallery__title-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
  padding-bottom: 0; /* unify spacing here; headline uses underline accent */
  text-align: center;
}

.gallery__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink-900); /* #1a1a1a */
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  text-transform: uppercase;
}

/* Brand underline: purple → amber gradient */
.gallery__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand-purple) 0%,
    var(--brand-amber) 100%
  );
  border-radius: 2px;
}

/* Title responsiveness */
@media (max-width: 1199px) {
  .gallery__title {
    font-size: 2.5rem;
  }
}
@media (max-width: 991px) {
  .gallery__title {
    font-size: 2.2rem;
  }
}
@media (max-width: 767px) {
  .gallery__title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
}
@media (max-width: 575px) {
  .gallery__title {
    font-size: 1.8rem;
  }
}

/* ============================================================================
   SECTION: PAGE VISIBILITY (Single source of truth)
   - Avoid duplicates by defining once and reusing everywhere.
   ========================================================================== */

.gallery-page {
  display: none;
  opacity: 0;
  transition: opacity var(--trans-slow);
  /* When using flex layout for grid children (cards) */
  flex-wrap: wrap;
}

.gallery-page.active {
  display: flex;
  opacity: 1;
}

/* ============================================================================
   SECTION: GALLERY CARDS (Service Items)
   ========================================================================== */

.service__items {
  background: #ffffff; /* White card */
  border-radius: var(--radius-md); /* 12px */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-med), box-shadow var(--trans-med);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service__items:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* Thumbnail area (16:9 by default; fixed height fallback kept for legacy) */
.service__thumb {
  position: relative;
  width: 100%;
  height: 250px; /* Legacy height */
  overflow: hidden;
  background-color: #000000; /* Black fallback when image not ready */
  aspect-ratio: 16 / 9; /* Modern ratio control; height acts as fallback */
  cursor: pointer;
}

/* Responsive thumb heights when legacy height is preferred */
@media (max-width: 1199px) {
  .service__thumb {
    height: 220px;
  }
}
@media (max-width: 991px) {
  .service__thumb {
    height: 200px;
  }
}
@media (max-width: 767px) {
  .service__thumb {
    height: 220px;
  }
}
@media (max-width: 575px) {
  .service__thumb {
    height: 200px;
  }
}

/* Image fill */
.service__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.service__items:hover .service__thumb img {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Card content */
.service__content {
  padding: 25px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {
  .service__content {
    padding: 20px 15px;
  }
}

.service__content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-700); /* #2c3e50 */
  margin-bottom: 12px;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .service__content h4 {
    font-size: 1.2rem;
  }
}

.service__content h4 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-med);
  outline: none;
}

.service__content h4 a:hover,
.service__content h4 a:focus-visible {
  color: var(--brand-amber); /* #facc15 */
}

.service__content p {
  font-size: 0.95rem;
  color: var(--ink-500); /* #6c757d */
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

@media (max-width: 767px) {
  .service__content p {
    font-size: 0.9rem;
  }
}

/* Optional hover overlay with icon (kept from your later block) */
.service__thumb-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--trans-med);
}
.service__thumb:hover .service__thumb-overlay {
  opacity: 1;
}

.service__thumb-overlay i {
  font-size: 48px;
  color: #ffffff; /* White */
}

/* ============================================================================
   SECTION: PAGINATION CONTROLS (Buttons + Legacy Links)
   ========================================================================== */

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-md);
  padding: 20px 0;
}

.gallery-pagination button {
  padding: 10px 20px;
  background-color: #ffffff; /* White */
  border: 2px solid var(--bg-300); /* #e0e0e0 */
  border-radius: 8px; /* slightly larger radius for touch */
  color: var(--ink-600); /* #333333 */
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--trans-med), background-color var(--trans-med),
    border-color var(--trans-med), color var(--trans-med),
    box-shadow var(--trans-med);
  outline: none;
}

.gallery-pagination button:hover,
.gallery-pagination button:focus-visible {
  background-color: var(--brand-amber); /* #facc15 */
  border-color: var(--brand-amber);
  color: #1a1a1a; /* dark text on amber for contrast */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.35); /* amber glow */
}

.gallery-pagination button.active {
  background-color: var(--brand-purple); /* #2e0c5e */
  border-color: var(--brand-purple);
  color: #ffffff;
}

/* Tighten layout on very small screens */
@media (max-width: 575px) {
  .gallery-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  .gallery-pagination button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

/* Legacy numeric pagination link (kept for compatibility) */
.default__pagination li a.active {
  background-color: var(--brand-purple); /* #2e0c5e */
  color: #ffffff;
  border-color: var(--brand-purple);
  font-weight: 700;
}

/* ============================================================================
   SECTION: LOADING & ERROR STATES (Skeleton shimmer; safe, loop-free)
   ========================================================================== */

/* Loading shimmer on the thumbnail container while image decodes */
.service__thumb.loading {
  background: linear-gradient(
    90deg,
    var(--bg-300) 25%,
    var(--bg-200) 50%,
    var(--bg-300) 75%
  );
  background-size: 200% 100%;
  animation: gallery-loading 1.5s infinite;
}

@keyframes gallery-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Hide broken/empty images; JS sets neutral bg on parent to avoid loops */
.service__thumb img[src=""],
.service__thumb img:not([src]) {
  display: none;
}

/* (Note: ::after on <img> has no effect. If you want an alt-text overlay,
   render a sibling element in HTML or via JS when an error occurs.) */

/* ============================================================================
   SECTION: LIGHTBOX MODAL (Brand-styled)
   ========================================================================== */

#image-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65); /* dark scrim */
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#modal-window {
  width: 100%;
  height: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background-color: #ffffff; /* White */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--brand-purple); /* Brand frame */
}

#modal-top-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}

#modal-top-controls button {
  background: rgba(40, 40, 40, 0.7); /* semi-dark */
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--trans-fast), background-color var(--trans-fast),
    box-shadow var(--trans-fast);
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

#modal-top-controls button:hover,
#modal-top-controls button:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Button-specific brand accent hovers */
#modal-close-btn:hover,
#modal-close-btn:focus-visible {
  background-color: var(--brand-purple); /* Purple close */
}
#fullscreen-btn:hover,
#fullscreen-btn:focus-visible {
  background-color: var(--brand-amber); /* Amber fullscreen */
  color: #1a1a1a;
}
#minimize-btn:hover,
#minimize-btn:focus-visible {
  background-color: var(--brand-amber); /* Amber minimize */
  color: #1a1a1a;
}

#modal-image-container {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #222222; /* deep neutral to frame media */
}

#modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--trans-fast);
  cursor: grab;
}

#modal-image.is-dragging {
  cursor: grabbing;
}

/* Zoom slider dock */
#modal-zoom-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(20, 20, 20, 0.65);
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid var(--brand-amber); /* subtle brand ring */
}

#zoom-slider {
  cursor: pointer;
  width: 180px;
}

/* Disable body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* ============================================================================
   SECTION: BANNER OVERRIDES (Scoped to Gallery Page)
   Purpose: Fix text overlap issues specific to the gallery banner.
   ========================================================================== */

/* 
   Fix for banner text overlap during fade transition:
   Hide animated elements by default. They will be revealed by the animation class.
   Using !important to override any potential conflicts from other stylesheets.
*/
.banner__section .banner__content [data-animation]:not(.animated) {
  opacity: 0 !important;
}

/* Ensure slides have a solid background to prevent transparency overlap during fade */
.banner__section .swiper-slide {
  background-color: #fff; /* or #000 depending on design, safe default */
  z-index: 1; /* Default z-index */
}

.banner__section .swiper-slide.swiper-slide-active {
  z-index: 10; /* Ensure active slide is on top */
}

/* 
   Responsive Aspect Ratio Fix:
   Forces the banner container to maintain a 16:9 ratio (standard video/image format).
   This allows the height to auto-adjust based on width, preventing cropping on wide screens
   and excessive height on mobile.
*/
.banner__section {
  aspect-ratio: 21 / 9 !important; /* Reduced height by ~25% (Ultrawide) */
  height: auto !important; /* Override fixed 100vh */
  min-height: unset !important; /* Allow it to shrink if needed */
}

/* Ensure the slider and images fill this new responsive container */
.banner__slider,
.banner__image {
  height: 100% !important;
  background-size: 100% 100% !important; /* Force fit: No crop, no bars (Stretches if ratio differs) */
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* ================================================================= */
/* ================================================================= */
/* ================================================================= */
/*       BANNER SLIDER CONTENT BOTTOM POSITIONING OVERRIDE            */
/* ================================================================= */
/* ================================================================= */
/* ================================================================= */
/*  PURPOSE: Force all banner slide content to the bottom position    */
/*  This section overrides ALL other banner content styles            */
/* ================================================================= */
/* ================================================================= */
/* ================================================================= */

/* ================================================================= */
/* SWIPER SLIDES - FORCE RELATIVE POSITIONING                         */
/* ================================================================= */
.banner__section .swiper-slide {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

/* ================================================================= */
/* BANNER CONTENT CONTAINER - FORCE ABSOLUTE BOTTOM LEFT              */
/* ================================================================= */
.banner__section .swiper-slide .container {
  position: absolute !important;
  bottom: 60px !important;
  left: 250px !important;
  right: auto !important;
  top: auto !important;
  z-index: 10 !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ================================================================= */
/* ROW - REMOVE BOOTSTRAP CENTERING                                   */
/* ================================================================= */
.banner__section .swiper-slide .container .row {
  margin: 0 !important;
  justify-content: flex-start !important;
}

/* ================================================================= */
/* COLUMN - FORCE LEFT ALIGNMENT                                      */
/* ================================================================= */
.banner__section .swiper-slide .container .row > div {
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
  width: auto !important;
  max-width: 800px !important;
}

/* ================================================================= */
/* BANNER CONTENT - FORCE LEFT ALIGNMENT                              */
/* ================================================================= */
.banner__section .swiper-slide .banner__content {
  position: relative !important;
  margin: 0 !important;
  text-align: left !important;
  align-items: flex-start !important;
}

/* ================================================================= */
/* GLASS-TINTED BACKGROUND FOR BANNER TEXT (Ensures Readability)     */
/* ================================================================= */
/* Glass effect is HIDDEN by default - only shows when text animates in */
.banner__section .swiper-slide .banner__content h1,
.banner__section .swiper-slide .banner__content p {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 18px 25px !important;
  border-radius: 10px !important;
  border: none !important;
  margin-bottom: 15px !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
  transition: background-color 0.5s ease !important;
}

/* GLASS EFFECT APPEARS WITH TEXT ANIMATION */
.banner__section .swiper-slide .banner__content h1.animated,
.banner__section .swiper-slide .banner__content p.animated {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.banner__section .swiper-slide .banner__content p {
  color: #f5f5f5 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}

/* ================================================================= */
/* ================================================================= */
/* ================================================================= */
/*       END OF BANNER SLIDER CONTENT BOTTOM POSITIONING OVERRIDE     */
/* ================================================================= */
/* ================================================================= */
/* ================================================================= */

/* ================================================================= */
/* ================================================================= */
/* ================================================================= */
/*    GALLERY SERVICE CONTENT BOTTOM ALIGNMENT - MASTER OVERRIDE     */
/* ================================================================= */
/* ================================================================= */
/* ================================================================= */
/*  PURPOSE: Force all service card content in the gallery section   */
/*           to align to the BOTTOM of each card, regardless of      */
/*           other CSS rules or screen sizes.                         */
/* ================================================================= */
/* ================================================================= */
/* ================================================================= */

/* ================================================================= */
/* GALLERY SERVICE ITEMS - FORCE RELATIVE POSITIONING & FIXED HEIGHT */
/* ================================================================= */
.gallery__section .service__items,
#gallery-section .service__items,
.gallery-page .service__items {
  position: relative !important;
  min-height: 420px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ================================================================= */
/* GALLERY SERVICE CONTENT - FORCE ABSOLUTE BOTTOM POSITIONING       */
/* ================================================================= */
.gallery__section .service__items .service__content,
#gallery-section .service__items .service__content,
.gallery-page .service__items .service__content {
  position: absolute !important;
  bottom: 20px !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  padding: 0 20px !important;
  margin: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
}

/* ================================================================= */
/* RESPONSIVE ADJUSTMENTS FOR GALLERY SERVICE CONTENT                 */
/* ================================================================= */
@media (max-width: 991px) {
  .gallery__section .service__items,
  #gallery-section .service__items,
  .gallery-page .service__items {
    min-height: 400px !important;
  }

  .gallery__section .service__items .service__content,
  #gallery-section .service__items .service__content,
  .gallery-page .service__items .service__content {
    bottom: 15px !important;
    padding: 0 15px !important;
  }
}

@media (max-width: 767px) {
  .gallery__section .service__items,
  #gallery-section .service__items,
  .gallery-page .service__items {
    min-height: 380px !important;
  }

  .gallery__section .service__items .service__content,
  #gallery-section .service__items .service__content,
  .gallery-page .service__items .service__content {
    bottom: 15px !important;
  }
}

@media (max-width: 575px) {
  .gallery__section .service__items,
  #gallery-section .service__items,
  .gallery-page .service__items {
    min-height: 360px !important;
  }

  .gallery__section .service__items .service__content,
  #gallery-section .service__items .service__content,
  .gallery-page .service__items .service__content {
    bottom: 12px !important;
    padding: 0 12px !important;
  }
}

/* ================================================================= */
/* ================================================================= */
/* ================================================================= */
/*    END OF GALLERY SERVICE CONTENT BOTTOM ALIGNMENT OVERRIDE       */
/* ================================================================= */
/* ================================================================= */
/* ================================================================= */

/* ========================================================================== */
/* ---- 1) BUTTON SHAPE + BASE STATE ---------------------------------------- */
.header__top .social.social__icon li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(18px + 10px * 2);
  height: calc(18px + 10px * 2);
  color: #facc15 !important;
  background: transparent !important;
  border: 2px solid #facc15 !important;
  border-radius: 9999px !important;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none !important;
}

.header__top .social.social__icon li a i {
  font-size: 18px !important;
  color: currentColor !important;
}

/* ---- 2) HOVER + FOCUS ----------------------------------------------------- */
.header__top .social.social__icon li a:hover,
.header__top .social.social__icon li a:focus-visible {
  transform: translateY(-2px);
  color: #ffffff !important;
  background: #2e0c5e !important;
  border-color: #2e0c5e !important;
  outline: none !important;
}

.header__top .social.social__icon li a:focus-visible {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
}

.header__top .social.social__icon li a[aria-label="Alignable"] img {
}

  display: block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
}

  .header__top .social.social__icon li a[aria-label="Alignable"] img {
    display: inline-block !important;
    filter: brightness(0) saturate(100%) invert(84%) sepia(78%) saturate(508%)
    hue-rotate(357deg) brightness(103%) contrast(102%);
  }
}

/* ========================================================================== */

/* ========================================================================== */
/* ========================================================================== */

/* ========================================================================== */
/* ---- 1) BUTTON SHAPE + BASE STATE ---------------------------------------- */
.header__top .social.social__icon li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  color: #facc15 !important;
  background: transparent !important;
  border: 2px solid #facc15 !important;
  border-radius: 50% !important;
  line-height: 1;
  transition: all .2s ease;
  text-decoration: none !important;
}

.header__top .social.social__icon li a i {
  font-size: 16px !important;
  color: currentColor !important;
}

/* ---- 2) HOVER + FOCUS ----------------------------------------------------- */
.header__top .social.social__icon li a:hover,
.header__top .social.social__icon li a:focus-visible {
  transform: translateY(-2px);
  color: #ffffff !important;
  background: #2e0c5e !important;
  border-color: #2e0c5e !important;
}

/* ---- 3) ALIGNABLE IMG - sized to match icons ------------------------------ */
.header__top .social.social__icon li a[aria-label="Alignable"] img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(84%) sepia(78%) saturate(508%)
          hue-rotate(357deg) brightness(103%) contrast(102%);
}

/* ========================================================================== */

.footer-widget .social-icons .alignable-custom-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
}


/* ========================================================================== */

/* ========================================================================== */
/* SOCIAL ICONS SIZING FIX — Header + Footer (SIZE ONLY, NO COLOR CHANGES)   */
/* ========================================================================== */

/* Header top bar: Increase circle size and center icons */
.header__top .social.social__icon li a {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Header icons: Font Awesome icon size */
.header__top .social.social__icon li a i {
  font-size: 16px !important;
}

/* Header Alignable img: Match other icon sizes */
.header__top .social.social__icon li a img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
}

/* Footer Alignable img: Match other footer icon sizes */
.footer-widget .social-icons .alignable-custom-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}




/* ============================================================ */
/* RESPONSIVE BANNER HEIGHT - 26 Breakpoints (320px to 8192px+) */
/* Full image visibility with background-size: contain          */
/* ============================================================ */

/* Base/Default - Extra small screens */
:root {
  --banner-height: 180px;
}

/* 320px+ - Small phones */
@media (min-width: 320px) {
  :root { --banner-height: 200px; }
}

/* 360px+ - Small phones */
@media (min-width: 360px) {
  :root { --banner-height: 220px; }
}

/* 375px+ - iPhone SE/8 */
@media (min-width: 375px) {
  :root { --banner-height: 230px; }
}

/* 400px+ - Medium phones */
@media (min-width: 400px) {
  :root { --banner-height: 240px; }
}

/* 414px+ - iPhone Plus/Max */
@media (min-width: 414px) {
  :root { --banner-height: 260px; }
}

/* 480px+ - Large phones */
@media (min-width: 480px) {
  :root { --banner-height: 280px; }
}

/* 576px+ - Phablets */
@media (min-width: 576px) {
  :root { --banner-height: 350px; }
}

/* 768px+ - Tablets portrait */
@media (min-width: 768px) {
  :root { --banner-height: 450px; }
}

/* 800px+ - Small tablets */
@media (min-width: 800px) {
  :root { --banner-height: 480px; }
}

/* 992px+ - Tablets landscape */
@media (min-width: 992px) {
  :root { --banner-height: 520px; }
}

/* 1024px+ - iPad/small laptops */
@media (min-width: 1024px) {
  :root { --banner-height: 550px; }
}

/* 1200px+ - Laptops */
@media (min-width: 1200px) {
  :root { --banner-height: 600px; }
}

/* 1280px+ - HD laptops */
@media (min-width: 1280px) {
  :root { --banner-height: 650px; }
}

/* 1366px+ - Common laptops */
@media (min-width: 1366px) {
  :root { --banner-height: 700px; }
}

/* 1440px+ - Large laptops */
@media (min-width: 1440px) {
  :root { --banner-height: 750px; }
}

/* 1600px+ - Desktop monitors */
@media (min-width: 1600px) {
  :root { --banner-height: 800px; }
}

/* 1920px+ - Full HD (1080p) */
@media (min-width: 1920px) {
  :root { --banner-height: 850px; }
}

/* 2048px+ - 2K cinema */
@media (min-width: 2048px) {
  :root { --banner-height: 900px; }
}

/* 2560px+ - QHD (1440p) */
@media (min-width: 2560px) {
  :root { --banner-height: 950px; }
}

/* 3440px+ - Ultrawide */
@media (min-width: 3440px) {
  :root { --banner-height: 1000px; }
}

/* 3840px+ - 4K UHD */
@media (min-width: 3840px) {
  :root { --banner-height: 1100px; }
}

/* 4096px+ - 4K cinema */
@media (min-width: 4096px) {
  :root { --banner-height: 1150px; }
}

/* 5120px+ - 5K */
@media (min-width: 5120px) {
  :root { --banner-height: 1200px; }
}

/* 7680px+ - 8K */
@media (min-width: 7680px) {
  :root { --banner-height: 1300px; }
}

/* 8192px+ - 8K cinema extreme */
@media (min-width: 8192px) {
  :root { --banner-height: 1400px; }
}

/* ============================================================ */
/* Gallery Banner Auto-Fit Overrides                            */
/* ============================================================ */
.banner__section {
  aspect-ratio: auto !important;
  height: var(--banner-height) !important;
  min-height: var(--banner-height) !important;
}

.banner__section .banner__slider,
.banner__section .swiper-wrapper,
.banner__section .swiper-slide {
  height: var(--banner-height) !important;
  min-height: var(--banner-height) !important;
}

.banner__section.overhid .swiper-slide .banner__image {
  height: 100% !important;
  min-height: 100% !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Disable banner zoom-in effect */
.banner__section .swiper-slide-active .banner__image {
  transform: scale(1) !important;
}

/* Remove banner zoom animation */
.banner__section .banner__image,
.banner__section .swiper-slide-active .banner__image,
.banner__section .swiper-slide-prev .banner__image,
.banner__section .swiper-slide-next .banner__image {
  transform: scale(1) !important;
  transition: none !important;
  animation: none !important;
}

/* Bottom purple border */
.banner__section {
  border-bottom: 10px solid #2e0c5e !important;
  box-sizing: border-box !important;
}



/* ============================================================ */
/* SERVICE GLASS CONTAINER (SYNCED)                            */
/* Source: assets/css/secondary-towing-relocation.css          */
/* ============================================================ */



/* ================================================================= */
/* MOBILE VISIBILITY SAFEGUARD                                       */
/* Ensures content isn't hidden by "overflow" or "height" issues     */
/* ================================================================= */

@media (max-width: 991px) {
    /* 1. Force Banner to fit content */
    section.banner__section-override {
        height: auto !important;
        min-height: 600px !important;
        overflow: visible !important; /* Prevents cutting off text */
    }

    /* 2. Force Glass Container Visibility */
    .shop__details, 
    .banner__content-override,
    .service__items,
    .blog__items {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important; /* Ensures it renders in flow */
    }
}


/* ============================================================ */
/* RESPONSIVE BANNER HEIGHT - 26 Breakpoints (320px to 8192px+) */
/* Full image visibility with background-size: contain          */
/* ============================================================ */

/* Base/Default - Extra small screens */
:root {
  --banner-height: 180px;
}

/* 320px+ - Small phones */
@media (min-width: 320px) {
  :root { --banner-height: 200px; }
}

/* 360px+ - Small phones */
@media (min-width: 360px) {
  :root { --banner-height: 220px; }
}

/* 375px+ - iPhone SE/8 */
@media (min-width: 375px) {
  :root { --banner-height: 230px; }
}

/* 400px+ - Medium phones */
@media (min-width: 400px) {
  :root { --banner-height: 240px; }
}

/* 414px+ - iPhone Plus/Max */
@media (min-width: 414px) {
  :root { --banner-height: 260px; }
}

/* 480px+ - Large phones */
@media (min-width: 480px) {
  :root { --banner-height: 280px; }
}

/* 576px+ - Phablets */
@media (min-width: 576px) {
  :root { --banner-height: 350px; }
}

/* 768px+ - Tablets portrait */
@media (min-width: 768px) {
  :root { --banner-height: 450px; }
}

/* 800px+ - Small tablets */
@media (min-width: 800px) {
  :root { --banner-height: 480px; }
}

/* 992px+ - Tablets landscape */
@media (min-width: 992px) {
  :root { --banner-height: 520px; }
}

/* 1024px+ - iPad/small laptops */
@media (min-width: 1024px) {
  :root { --banner-height: 550px; }
}

/* 1200px+ - Laptops */
@media (min-width: 1200px) {
  :root { --banner-height: 600px; }
}

/* 1280px+ - HD laptops */
@media (min-width: 1280px) {
  :root { --banner-height: 650px; }
}

/* 1366px+ - Common laptops */
@media (min-width: 1366px) {
  :root { --banner-height: 700px; }
}

/* 1440px+ - Large laptops */
@media (min-width: 1440px) {
  :root { --banner-height: 750px; }
}

/* 1600px+ - Desktop monitors */
@media (min-width: 1600px) {
  :root { --banner-height: 800px; }
}

/* 1920px+ - Full HD (1080p) */
@media (min-width: 1920px) {
  :root { --banner-height: 850px; }
}

/* 2048px+ - 2K cinema */
@media (min-width: 2048px) {
  :root { --banner-height: 900px; }
}

/* 2560px+ - QHD (1440p) */
@media (min-width: 2560px) {
  :root { --banner-height: 950px; }
}

/* 3440px+ - Ultrawide */
@media (min-width: 3440px) {
  :root { --banner-height: 1000px; }
}

/* 3840px+ - 4K UHD */
@media (min-width: 3840px) {
  :root { --banner-height: 1100px; }
}

/* 4096px+ - 4K cinema */
@media (min-width: 4096px) {
  :root { --banner-height: 1150px; }
}

/* 5120px+ - 5K */
@media (min-width: 5120px) {
  :root { --banner-height: 1200px; }
}

/* 7680px+ - 8K */
@media (min-width: 7680px) {
  :root { --banner-height: 1300px; }
}

/* 8192px+ - 8K cinema extreme */
@media (min-width: 8192px) {
  :root { --banner-height: 1400px; }
}

/* ============================================================ */
/* SERVICE GLASS CONTAINER (SYNCED)                            */
/* Source: assets/css/secondary-towing-relocation.css          */
/* ============================================================ */

/* ================================================================= */
/* MOBILE VISIBILITY SAFEGUARD                                       */
/* Ensures content is not hidden by overflow or height issues        */
/* ================================================================= */

@media (max-width: 991px) {
    section.banner__section-override {
        height: auto !important;
        min-height: 600px !important;
        overflow: visible !important;
    }

    .shop__details, 
    .banner__content-override,
    .service__items,
    .blog__items {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* ====================================================================================== */
/*          UNIVERSAL MASTER FIX - VISUALS + LAYOUT + RESPONSIVENESS                     */
/* ====================================================================================== */

.service-glass-container {
  background-color: rgba(0, 0, 0, 0.3) !important;
  padding: 35px 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  max-width: 800px !important;
  position: relative !important;
  z-index: 10 !important;
}

.service-heading {
  color: #ffffff !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.service-description {
  color: #f0f0f0 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  margin-bottom: 25px !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.service-buttons {
  display: flex !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
  margin-top: 20px !important;
}

.service-btn, .cmn--btn {
  white-space: nowrap !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}

.service-btn-primary {
  background-color: #facc15 !important;
  color: #222222 !important;
  border: 2px solid #facc15 !important;
}

.service-btn-secondary {
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

@media (min-width: 992px) {
  .service-glass-container {
    left: -300px !important;
    margin-left: 0 !important;
    text-align: left !important;
  }
  
  .service-heading {
    text-align: left !important;
  }

  .service-description {
    text-align: left !important;
  }
  
  .service-buttons {
    justify-content: flex-start !important;
  }

  .left-content {
    margin-left: -50px !important;
  }
}

@media (max-width: 991px) {
    
    .service-glass-container {
        left: 0 !important;
        margin: 20px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 20px !important;
        transform: none !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
        text-align: center !important;
    }

    .service-heading { 
        font-size: 32px !important; 
        text-align: center !important;
    }
    
    .service-description { 
        font-size: 16px !important; 
        text-align: center !important;
    }
    
    .service-buttons { 
        justify-content: center !important; 
    }
    
    .left-content { 
        margin-left: 0 !important; 
    }

    .header-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 90px !important;
        padding: 0 15px !important;
        position: relative !important;
    }

    .header-wrapper .main__logo {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        bottom: auto !important;
        z-index: 20 !important;
        width: auto !important;
    }
    
    .header-wrapper .main__logo .logo img {
        height: 50px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .header-wrapper .menu__components {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 25 !important;
        display: flex !important;
        gap: 15px !important;
    }

    .header-wrapper .logo__menuadjust nav, .straddle-logo {
        display: none !important;
    }

    section.banner__section,
    section.banner__section-override {
        display: block !important;
        height: auto !important;
        min-height: 800px !important;
        padding-bottom: 60px !important;
        overflow: visible !important;
        margin-bottom: 0 !important;
    }

    .banner__image, 
    .banner__section .swiper-slide .banner__image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        width: 100% !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .banner__content,
    .banner__content-override {
        position: relative !important;
        margin-top: 80px !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10 !important;
    }
    
    section.banner__section + section,
    section.banner__section-override + section,
    .feature__section {
        margin-top: 0 !important;
        padding-top: 50px !important;
        background: #fff !important;
        position: relative !important;
        z-index: 5 !important;
    }
}

