@import 'tailwindcss';

@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';
@plugin 'flowbite/plugin';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../../node_modules/flowbite/**/*.js';

@utility container {
  margin-inline: auto;
  padding-inline: 1rem;
  @media (width >= --theme(--breakpoint-xs)) {
    max-width: none;
  }
  @media (width >= 640px) {
    max-width: 640px;
    padding-inline: 1.5rem;
  }
  @media (width >= 768px) {
    max-width: 768px;
  }
  @media (width >= 1024px) {
    max-width: 1024px;
    padding-inline: 2rem;
  }
  @media (width >= 1280px) {
    max-width: 1280px;
  }
}

@theme {
  --breakpoint-xs: 360px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  --breakpoint-3xl: 1920px;
  --breakpoint-4xl: 2560px;

  --color-brand-primary: var(--brand-primary);
  --color-brand-primary-hover: var(--brand-primary-hover);
  --color-brand-primary-active: var(--brand-primary-active);
  --color-brand-secondary: var(--brand-secondary);
  --color-brand-accent: var(--brand-accent);

  --color-surface: var(--surface);
  --color-surface-muted: var(--surface-muted);
  --color-surface-elevated: var(--surface-elevated);

  --color-ink: var(--ink);
  --color-ink-secondary: var(--ink-secondary);
  --color-ink-muted: var(--ink-muted);

  --color-line: var(--line);
  --color-line-strong: var(--line-strong);

  --color-focus-ring: var(--focus-ring);

  --color-status-success: var(--status-success);
  --color-status-warning: var(--status-warning);
  --color-status-error: var(--status-error);
  --color-status-info: var(--status-info);

  --color-overlay: var(--overlay);
  --color-primary: #044335;
  --color-secondary: #03624c;
  --color-accent: #fff32f;

  --color-background-primary: #ffffff;
  --color-background-secondary: #f8f9fa;

  --color-dark: #0f172a;
  --color-light: #f9fafb;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-info: #0284c7;
  --color-muted: #6b7280;
  --color-transparent: transparent;
  --color-current: currentColor;

  --color-custom-green: #044335;
  --color-custom-yellow: #fff32f;

  --font-sans:
    Figtree, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: Poppins, sans-serif;
  --font-serif: Merriweather, serif;
  --font-mono: Fira Code, monospace;

  --text-xs: 0.75rem;
  --text-xs--line-height: 1rem;
  --text-sm: 0.875rem;
  --text-sm--line-height: 1.25rem;
  --text-base: 1rem;
  --text-base--line-height: 1.5rem;
  --text-lg: 1.125rem;
  --text-lg--line-height: 1.75rem;
  --text-xl: 1.25rem;
  --text-xl--line-height: 1.75rem;
  --text-2xl: 1.5rem;
  --text-2xl--line-height: 2rem;
  --text-3xl: 1.875rem;
  --text-3xl--line-height: 2.25rem;
  --text-4xl: 2.25rem;
  --text-4xl--line-height: 2.5rem;
  --text-5xl: 3rem;
  --text-5xl--line-height: 1;
  --text-6xl: 3.75rem;
  --text-6xl--line-height: 1;
  --text-7xl: 4.5rem;
  --text-7xl--line-height: 1;
  --text-8xl: 6rem;
  --text-8xl--line-height: 1;

  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.75rem;
  --radius-5xl: 5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(4, 67, 53, 0.06);
  --shadow:
    0 1px 3px 0 rgba(4, 67, 53, 0.08), 0 1px 2px -1px rgba(4, 67, 53, 0.06);
  --shadow-md:
    0 4px 12px -2px rgba(4, 67, 53, 0.1), 0 2px 6px -2px rgba(4, 67, 53, 0.06);
  --shadow-lg:
    0 12px 24px -6px rgba(4, 67, 53, 0.14),
    0 4px 10px -4px rgba(4, 67, 53, 0.08);
  --shadow-xl:
    0 20px 40px -10px rgba(4, 67, 53, 0.18),
    0 8px 16px -8px rgba(4, 67, 53, 0.1);
  --shadow-2xl: 0 28px 56px -14px rgba(4, 67, 53, 0.28);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-none: none;

  --background-image-gradient-primary: linear-gradient(
    to right,
    #044335,
    #03624c
  );
  --background-image-gradient-accent: linear-gradient(135deg, #fff32f, #ffd700);
  --background-image-gradient-dark: linear-gradient(
    to bottom,
    #0f172a,
    #1e293b
  );

  --animate-fadeIn: fadeIn 1s ease-in-out;
  --animate-fadeOut: fadeOut 1s ease-in-out;
  --animate-slideUp: slideUp 1s ease-in-out;
  --animate-bounceX: bounceX 2s infinite;

  --transition-duration-0: 0ms;
  --transition-duration-75: 75ms;
  --transition-duration-100: 100ms;
  --transition-duration-150: 150ms;
  --transition-duration-200: 200ms;
  --transition-duration-300: 300ms;
  --transition-duration-500: 500ms;
  --transition-duration-700: 700ms;
  --transition-duration-1000: 1000ms;

  --z-index-0: 0;
  --z-index-10: 10;
  --z-index-20: 20;
  --z-index-30: 30;
  --z-index-40: 40;
  --z-index-50: 50;
  --z-index-100: 100;
  --z-index-999: 999;
  --z-index-9999: 9999;
  --z-index-auto: auto;

  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  @keyframes slideUp {
    0% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(0);
    }
  }
  @keyframes bounceX {
    0%,
    100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-20px);
    }
  }
}

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentcolor);
  }
}

@utility container-page {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@utility section-y {
  padding-block: var(--section-y);
}

@utility section-y-sm {
  padding-block: var(--section-y-sm);
}

@utility measure {
  max-width: var(--measure);
}

@utility text-display {
  font-size: clamp(2rem, 1.1rem + 3.8vw, 4rem); /* 32 -> 64 */
  line-height: 1.1;
  font-weight: 700;
}

@utility text-h1 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.15;
}

@utility text-h2 {
  font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.5rem);
  line-height: 1.2;
}

@utility text-h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.3;
}

@utility text-h4 {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.35;
}

@utility text-lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); /* 17 -> 20 */
  line-height: 1.6;
}

@utility text-body {
  font-size: clamp(0.9375rem, 0.87rem + 0.3vw, 1.125rem); /* 15 -> 18 */
  line-height: 1.65;
}

@utility text-support {
  font-size: clamp(0.875rem, 0.82rem + 0.2vw, 1rem); /* 14 -> 16 */
  line-height: 1.55;
}

@utility text-meta {
  font-size: clamp(0.8125rem, 0.78rem + 0.1vw, 0.875rem); /* 13 -> 14 */
  line-height: 1.45;
}

@utility table-responsive {
  /* Wide content (tables, DataTables) scrolls inside itself, never the page */
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@layer utilities {
  /* ==========================================================================
   Responsive design system (AWS-inspired scale, GBBS brand kept)
   Plain CSS on purpose: these classes also work where the Tailwind CDN
   script (which ignores the @theme block) is what compiles the page.
   ========================================================================== */
  :root {
    /* --- Semantic color tokens (GBBS green brand). Change here, everywhere updates. --- */
    --brand-primary: #044335;
    --brand-primary-hover: #033026;
    --brand-primary-active: #022219;
    --brand-secondary: #03624c;
    --brand-accent: #fff32f; /* decorative / on dark surfaces only, never body text on white */
    --surface: #ffffff;
    --surface-muted: #f2f5fa;
    --surface-elevated: #ffffff;
    --ink: #111827; /* body text, 16:1 on white */
    --ink-secondary: #374151;
    --ink-muted: #4b5563; /* 7.5:1 on white */
    --line: #e5e7eb;
    --line-strong: #cbd5e1;
    --focus-ring: #044335;
    --status-success: #15803d;
    --status-warning: #b45309;
    --status-error: #b91c1c;
    --status-info: #0369a1;
    --overlay: rgba(0, 0, 0, 0.45);

    --container-max: 1280px;
    --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem); /* 16px -> 48px */
    --section-y: clamp(3rem, 2rem + 3.5vw, 7rem); /* 48px -> 112px */
    --section-y-sm: clamp(2rem, 1.5rem + 2vw, 4rem); /* 32px -> 64px */
    --measure: 68ch; /* readable line length */
    --grid-gap: clamp(1rem, 0.6rem + 1.4vw, 2rem); /* 16px -> 32px */
    --card-pad: clamp(1.25rem, 1rem + 1vw, 2rem); /* 20px -> 32px */
    --heading-gap: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); /* 16px -> 24px */
    --btn-h: 2.75rem; /* 44px, 48px from md */
  }
}

@layer base {
    html {
        scroll-padding-top: 7rem; /* fixed header never covers anchor targets */
        -webkit-text-size-adjust: 100%;
    }

    body {
        font-size: 1rem;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    p {
        line-height: 1.625;
    }

    h1 {
        font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); /* 30 -> 52 */
        line-height: 1.15;
    }

    h2 {
        font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.5rem); /* 26 -> 40 */
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem); /* 20 -> 24 */
        line-height: 1.3;
    }

    h4 {
        font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); /* 18 -> 20 */
        line-height: 1.35;
    }

    h1,
    h2,
    h3,
    h4 {
        text-wrap: balance;
    }

    img,
    video {
        height: auto;
    }

    /* Keyboard focus: visible on light and dark surfaces */
    :focus-visible {
        outline: 2px solid var(--focus-ring);
        outline-offset: 2px;
    }

    .bg-primary :focus-visible,
    .bg-secondary :focus-visible,
    footer :focus-visible {
        outline-color: #fff32f;
    }
}

/* Spacing helpers driven by the tokens above */
.grid-gap {
    gap: var(--grid-gap);
}

.card-pad {
    padding: var(--card-pad);
}

.heading-gap {
    margin-bottom: var(--heading-gap);
}

/* Buttons: 44px tall on mobile, 48px from md up */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--btn-h);
    padding-inline: 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .btn {
        min-height: 3rem;
    }
}

/* Touch-friendly form controls (~44px) */
form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
form select,
form button[type="submit"] {
    min-height: 2.75rem;
}

/* reCAPTCHA v2 widget is a fixed 304px; scale it on very small phones */
.g-recaptcha {
    max-width: 100%;
}

@media (max-width: 359px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

@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;
    }
}


/* body {
 overflow-x: hidden;
} */

.slides-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

.sub-group:hover > ul {
    display: block;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 10s linear infinite;
}
.slider-track:hover {
    animation-play-state: paused;
}
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.tab-wrapper {
    width: 100%;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 12px;
    background: #9299af;
    color: #fff;
    border: 2px solid #9299af;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab.active {
    background: #0468b1;
    border-color: #0468b1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tab:hover {
    color: #0468b1;
    background: #fff;
    border-color: #0468b1;
}

.tab-content {
    padding: 20px;
    border-radius: 6px;
}

/* ==========================================================================
   Visual refresh (applies to every page)
   ========================================================================== */
::selection {
    background: #fff32f;
    color: #044335;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #044335 #e8eeec;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #e8eeec;
}

::-webkit-scrollbar-thumb {
    background: #044335;
    border-radius: 9999px;
    border: 2px solid #e8eeec;
}

/* Smooth, consistent interaction feedback */
a,
button,
[role="button"],
input,
select,
textarea {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

button:not(:disabled):active,
[role="button"]:active {
    transform: scale(0.98);
}

/* Form fields: one calm, branded style */
form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
form select,
form textarea {
    border-radius: 0.5rem;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #044335;
    box-shadow: 0 0 0 3px rgba(4, 67, 53, 0.18);
    outline: none;
}

/* Reusable card: use as <div class="card-ui"> on new or existing cards */
.card-ui {
    background: #fff;
    border: 1px solid rgba(4, 67, 53, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 12px -2px rgba(4, 67, 53, 0.1), 0 2px 6px -2px rgba(4, 67, 53, 0.06);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.card-ui:hover {
    box-shadow: 0 12px 24px -6px rgba(4, 67, 53, 0.16), 0 4px 10px -4px rgba(4, 67, 53, 0.08);
    transform: translateY(-2px);
}

/* Rich text from the CMS reads comfortably */
.prose img,
article img {
    border-radius: 0.75rem;
}

/* Justified CMS text: headings stay left-aligned, else short lines stretch into big gaps */
.text-justify :is(h1, h2, h3, h4, h5, h6) {
    text-align: left;
}

/* Ultrawide: long-form content keeps a readable measure */
@media (min-width: 1920px) {
    .prose:not(.max-w-none) {
        max-width: var(--measure);
    }
}

/* CMS bullet lists rendered as a check-mark list (two columns from 640px) */
.check-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem 1.5rem;
}

@media (min-width: 640px) {
    .check-list ul {
        grid-template-columns: 1fr 1fr;
    }
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.5;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 9999px;
    background: rgba(4, 67, 53, 0.1);
    color: #044335;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Standard section heading (use <x-section-heading>): eyebrow + title + lead
   ========================================================================== */
.section-head {
    max-width: 48rem;
    margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .section-eyebrow {
    justify-content: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.section-eyebrow__line {
    width: 2rem;
    height: 2px;
    background: currentColor;
    opacity: 0.6;
}

/* left aligned headings only get the trailing line */
.section-head--left .section-eyebrow__line--start {
    display: none;
}

.section-title {
    margin-top: 0.75rem;
    font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.5rem);
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.section-title em,
.section-title .accent {
    font-style: normal;
    color: var(--brand-primary);
}

.section-lead {
    margin-top: 1rem;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    line-height: 1.7;
    color: #4b5563;
}

.section-head--dark .section-eyebrow {
    color: var(--brand-accent);
}

.section-head--dark .section-title {
    color: #fff;
}

.section-head--dark .section-lead {
    color: rgba(255, 255, 255, 0.88);
}

/* Deep green section background: dark-to-brand gradient with a soft highlight (replaces flat bg-primary) */
.bg-brand-gradient {
    background-color: #033428;
    background-image:
        radial-gradient(ellipse 70% 60% at 90% 0%, rgba(3, 98, 76, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(2, 31, 25, 0.6) 0%, transparent 70%),
        linear-gradient(160deg, #021f19 0%, #033428 45%, #044335 100%);
}

/* ==========================================================================
   Scroll entrance motion (see resources/js/motion.js)
   Hidden states only apply while <html> has .motion-on, so no-JS and reduced-motion users see everything.
   Tokens: change timing here once for the whole site.
   ========================================================================== */
:root {
    --motion-duration: 600ms; /* standard */
    --motion-duration-subtle: 450ms;
    --motion-duration-emphasis: 750ms;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-distance: 24px;
    --motion-stagger: 80ms; /* informational: the JS uses 80ms */
}

@media (max-width: 640px) {
    :root {
        --motion-distance: 16px; /* smaller travel on phones */
    }
}

html.motion-on [data-animate] {
    opacity: 0;
    transition-property: opacity, transform, filter, clip-path;
    transition-duration: var(--m-dur, var(--motion-duration));
    transition-timing-function: var(--motion-ease);
    transition-delay: var(--m-delay, 0ms);
    will-change: opacity, transform;
}

html.motion-on [data-animate="fade-up"] { transform: translate3d(0, var(--m-dist, var(--motion-distance)), 0); }
html.motion-on [data-animate="fade-down"] { transform: translate3d(0, calc(var(--m-dist, var(--motion-distance)) * -1), 0); }
html.motion-on [data-animate="fade-left"] { transform: translate3d(calc(var(--m-dist, var(--motion-distance)) * -1), 0, 0); } /* enters from the left */
html.motion-on [data-animate="fade-right"] { transform: translate3d(var(--m-dist, var(--motion-distance)), 0, 0); } /* enters from the right */
html.motion-on [data-animate="scale-in"] { transform: scale(0.96); }
html.motion-on [data-animate="blur-in"] { filter: blur(6px); transform: translate3d(0, calc(var(--m-dist, var(--motion-distance)) * 0.5), 0); }
html.motion-on [data-animate="reveal"] { clip-path: inset(0 0 100% 0); opacity: 1; }
html.motion-on [data-animate="stagger"] { opacity: 1; transform: none; will-change: auto; } /* trigger only; children animate */

html.motion-on [data-animate].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: inset(0 0 0 0);
}

/* finished elements go back to normal CSS so hover/sticky/focus behave as designed */
.motion-done {
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Stacking scale. Use these classes instead of z-10 / z-50 / z-[9999] so layers never fight.
   content (0-10)  <  header 40  <  sub menu 50  <  child sub menu 60  (the last two live inside the header)
   floating buttons + side tabs 45  <  side drawer panel 60  <  mobile menu 70
   <  overlays (popup, video, lightbox) 100  <  modal 110  <  top (preloader, skip link) 9999
   ========================================================================== */
:root {
    --z-header: 40;
    --z-submenu: 50;
    --z-subchild: 60;
    --z-float: 45;
    --z-drawer: 60;
    --z-mobile-menu: 70;
    --z-overlay: 100;
    --z-modal: 110;
    --z-top: 9999;
}

.z-header { z-index: var(--z-header); }
.z-submenu { z-index: var(--z-submenu); }
.z-subchild { z-index: var(--z-subchild); }
.z-float { z-index: var(--z-float); }
.z-drawer { z-index: var(--z-drawer); }
.z-mobile-menu { z-index: var(--z-mobile-menu); }
.z-overlay { z-index: var(--z-overlay); }
.z-modal { z-index: var(--z-modal); }
.z-top { z-index: var(--z-top); }
.focus\:z-top:focus { z-index: var(--z-top); }

/* reCAPTCHA v3 badge hidden; every form shows the required privacy/terms notice instead */
.grecaptcha-badge {
    visibility: hidden;
}

/* ==========================================================================
   Image lightbox (resources/js/lightbox.js + components/lightbox.blade.php)
   ========================================================================== */
[data-lightbox] {
    cursor: zoom-in;
}

.lb .lb-backdrop {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lb .lb-stage {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lb.lb-visible .lb-backdrop {
    opacity: 1;
}

.lb.lb-visible .lb-stage {
    opacity: 1;
    transform: none;
}

.lb .lb-swiper .swiper-slide {
    height: 100%;
}

.lb .lb-swiper .swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb .lb-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    user-select: none;
}

.lb.lb-single .lb-nav {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .lb .lb-backdrop,
    .lb .lb-stage {
        transition: none;
    }
}
