/* Edufly — small custom layer on top of Tailwind CDN utilities.
   Kept deliberately minimal: anything expressible as a utility class
   stays in the markup. This file only holds what utilities can't do. */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #FAF8F5;
  overflow-x: clip;
  max-width: 100vw;
}

/* Sticky Navigation Bar */
#site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile & Admin Off-Canvas Slide Drawer */
#mobile-backdrop.is-active,
#admin-backdrop.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#mobile-drawer.is-active,
#admin-drawer.is-active {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

/* Visible keyboard focus everywhere, incl. inside custom components */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #5E3D22;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hide scrollbar utility & seamless modal scrolling */
.no-scrollbar,
[id*="modal"],
[id*="Modal"],
.modal-scroll,
.modal-body {
  -ms-overflow-style: none !important; /* IE and Edge */
  scrollbar-width: none !important; /* Firefox */
}

.no-scrollbar::-webkit-scrollbar,
[id*="modal"]::-webkit-scrollbar,
[id*="Modal"]::-webkit-scrollbar,
.modal-scroll::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

[id*="modal"] *,
[id*="Modal"] * {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

[id*="modal"] *::-webkit-scrollbar,
[id*="Modal"] *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Fixed Modal Dialog Architecture */
.modal-dialog {
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
  overflow: hidden !important;
}

.modal-header {
  flex-shrink: 0 !important;
  border-bottom: 1px solid rgba(94, 61, 34, 0.12) !important;
  background-color: #FFFFFF !important;
  z-index: 10 !important;
}

.modal-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.modal-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.modal-footer {
  flex-shrink: 0 !important;
  border-top: 1px solid rgba(94, 61, 34, 0.12) !important;
  background-color: #FAF8F5 !important;
  z-index: 10 !important;
}


/* Fixed 100vh height and vertical scrolling for admin sidebar */
aside[class*="w-64"],
.admin-sidebar {
  height: 100vh !important;
  max-height: 100vh !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  overflow-y: auto !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

aside[class*="w-64"]::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}



/* Ticket / boarding-pass card: perforated edge between stub and body */
.ticket-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(94,61,34,0.14);
  border-radius: 14px;
  overflow: hidden;
}
.ticket-stub {
  position: relative;
  border-top: 2px dashed rgba(94,61,34,0.25);
}
.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  background: #FAF8F5;
  border-radius: 50%;
}
.ticket-stub::before { left: -9px; }
.ticket-stub::after  { right: -9px; }

/* Dark ticket stub for hero glass card */
.hero-ticket-stub {
  position: relative;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
}
.hero-ticket-stub::before,
.hero-ticket-stub::after {
  display: none;
}

/* Passport-style stamp badge, used sparingly for trust points */
.stamp-badge {
  border: 2px solid currentColor;
  border-radius: 9999px;
  transform: rotate(-4deg);
}

/* Route / dashed flight-path divider */
.flight-path {
  background-image: repeating-linear-gradient(to right, rgba(94,61,34,0.35) 0 6px, transparent 6px 12px);
  height: 1px;
}

/* ==========================================================================
   Modern Hero Carousel Styles
   ========================================================================== */

.hero-carousel {
  position: relative;
  overflow: hidden;
  background-color: #231A14;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
}

/* Ken Burns background zoom on active slide */
.hero-slide-bg {
  transform: scale(1);
  transition: transform 6.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1.08);
}

/* Staggered entrance for active slide content */
.hero-anim-badge {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.hero-anim-title {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease 0.25s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.hero-anim-desc {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.hero-anim-actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease 0.45s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.hero-anim-card {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.hero-slide.is-active .hero-anim-badge,
.hero-slide.is-active .hero-anim-title,
.hero-slide.is-active .hero-anim-desc,
.hero-slide.is-active .hero-anim-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-anim-card {
  opacity: 1;
  transform: translateX(0);
}

/* Carousel timer progress bar */
@keyframes heroProgressAnim {
  from { width: 0%; }
  to { width: 100%; }
}

.hero-progress-fill {
  width: 0%;
}

.hero-slide-indicator.is-active .hero-progress-fill {
  animation: heroProgressAnim 5.5s linear forwards;
}

.hero-carousel:hover .hero-progress-fill,
.hero-carousel.is-paused .hero-progress-fill {
  animation-play-state: paused !important;
}

/* Frosted glass utilities */
.glass-panel {
  background: rgba(35, 26, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-panel-shimmer {
  position: relative;
  background: rgba(35, 26, 20, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(216, 133, 30, 0.12);
  overflow: hidden;
}

.glass-panel-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.09) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: cardShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardShimmer {
  0%, 75% { left: -150%; }
  100% { left: 150%; }
}

.glass-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(250, 188, 107, 0.6);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.glass-pill.is-active {
  background: linear-gradient(135deg, #D8851E 0%, #B86E14 100%);
  border-color: rgba(250, 188, 107, 0.95);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(216, 133, 30, 0.45);
}

.glass-ctrl-btn {
  background: rgba(35, 26, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-ctrl-btn:hover {
  background: linear-gradient(135deg, #D8851E 0%, #B86E14 100%);
  border-color: rgba(250, 188, 107, 0.9);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(216, 133, 30, 0.35);
}

.hero-prev-btn,
.hero-next-btn {
  user-select: none;
  -webkit-user-select: none;
}

.hero-prev-btn:hover,
.hero-next-btn:hover {
  box-shadow: 0 4px 20px rgba(216, 133, 30, 0.45);
}

.hero-prev-btn:active,
.hero-next-btn:active {
  transform: scale(0.92) !important;
}

/* Trust Strip Mobile Continuous Marquee */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.trust-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
  will-change: transform;
}

.trust-marquee:hover {
  animation-play-state: paused;
}

/* Dynamic Hero Navigation Header (Over dark hero) */
header.is-hero-nav {
  background-color: rgba(23, 17, 12, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

header.is-hero-nav .nav-logo-text {
  color: #FFFFFF !important;
}

header.is-hero-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

header.is-hero-nav .nav-link:hover,
header.is-hero-nav .nav-link.is-active {
  color: #D8851E !important;
}

header.is-hero-nav .nav-cta-btn {
  background-color: #D8851E !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(216, 133, 30, 0.35) !important;
}

header.is-hero-nav .nav-cta-btn:hover {
  background-color: #f59e0b !important;
}

header.is-hero-nav #menu-toggle {
  color: #FFFFFF !important;
}

/* Scrolled Sticky Navigation Bar (Over light body content) */
header:not(.is-hero-nav) {
  background-color: rgba(250, 248, 245, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom-color: rgba(94, 61, 34, 0.12) !important;
  box-shadow: 0 4px 20px -2px rgba(35, 26, 20, 0.08) !important;
}

header:not(.is-hero-nav) .nav-logo-text {
  color: #5E3D22 !important;
}

header:not(.is-hero-nav) .nav-link {
  color: #5E5249 !important;
}

header:not(.is-hero-nav) .nav-link:hover,
header:not(.is-hero-nav) .nav-link.is-active {
  color: #5E3D22 !important;
}

header:not(.is-hero-nav) .nav-cta-btn {
  background-color: #5E3D22 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(94, 61, 34, 0.25) !important;
}

header:not(.is-hero-nav) .nav-cta-btn:hover {
  background-color: #452A15 !important;
}

header:not(.is-hero-nav) #menu-toggle {
  color: #5E3D22 !important;
}

/* Floating Bento Stats Card (Inspired by reference design) */
.bento-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(35, 26, 20, 0.15);
}

/* ==========================================================================
   Gallery Lightbox Modal Styles
   ========================================================================== */
#gallery-lightbox {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#lb-image {
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(216, 133, 30, 0.12);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   Scroll Reveal Entrance Animations
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible,
.scroll-reveal-left.is-visible,
.scroll-reveal-right.is-visible,
.scroll-reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-reveal.is-revealed,
.scroll-reveal-left.is-revealed,
.scroll-reveal-right.is-revealed,
.scroll-reveal-scale.is-revealed {
  will-change: auto;
}

.bento-card.scroll-reveal.is-visible:hover {
  transform: translateY(-4px);
}

/* Stagger delay classes */
.scroll-delay-1 { transition-delay: 90ms; }
.scroll-delay-2 { transition-delay: 180ms; }
.scroll-delay-3 { transition-delay: 270ms; }
.scroll-delay-4 { transition-delay: 360ms; }
.scroll-delay-5 { transition-delay: 450ms; }
.scroll-delay-6 { transition-delay: 540ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-slide-bg { transform: none !important; }
  .hero-progress-fill { animation: none !important; }
  .trust-marquee { animation: none !important; transform: none !important; }
  .glass-panel-shimmer::before { display: none !important; }
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}


/* Memo / Textarea box on confirmation slip */
.print-textarea-box {
  min-height: 48px;
  background-color: rgba(247, 245, 239, 0.7);
  border: 1px solid rgba(13, 92, 86, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #111827;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  text-align: left !important;
}

/* ==========================================================================
   Executive Single-Page A4 Print Stylesheet
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 12mm;
  }

  /* Completely suppress all browser/website chrome */
  .no-print,
  #site-header,
  #mobile-drawer,
  #mobile-backdrop,
  #admin-drawer,
  #admin-backdrop,
  #scroll-top-btn,
  #admin-scroll-top-btn,
  header,
  nav,
  footer,
  .cookie-consent,
  button,
  .btn {
    display: none !important;
  }

  /* Reset layout for single page physical paper / PDF */
  html, body {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #111827 !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  main,
  .max-w-3xl {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .print-area {
    box-shadow: none !important;
    border: 1.5px solid #0D5C56 !important;
    border-radius: 6px !important;
    padding: 14px 18px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
    page-break-before: avoid !important;
  }

  /* Compact ticket-stub */
  .ticket-stub {
    border-top: 1px dashed #CBD5E1 !important;
    margin: 8px 0 !important;
    padding: 0 !important;
  }
  .ticket-stub::before,
  .ticket-stub::after {
    display: none !important;
  }

  /* Ensure deep contrasting brand colors for high quality print */
  .print-area * {
    color: #111827 !important;
  }
  .print-area .text-teal,
  .print-area .print-brand-teal {
    color: #0D5C56 !important;
  }
  .print-area .text-gold,
  .print-area .print-brand-gold {
    color: #92400E !important;
  }
  .print-area .text-inksoft,
  .print-area .print-text-muted {
    color: #4B5563 !important;
  }
  .print-area .stamp-badge {
    border: 1.2px solid #0D5C56 !important;
    color: #0D5C56 !important;
    transform: none !important;
    padding: 2px 6px !important;
    font-size: 7.5pt !important;
  }

  /* Compact print data rows */
  .print-data-row {
    border-bottom: 1px solid #E5E7EB !important;
    padding: 2.5px 0 !important;
  }
  .print-data-row:last-child {
    border-bottom: none !important;
  }

  /* Full-width memo / textarea container in print */
  .print-textarea-box {
    border: 1px solid #CBD5E1 !important;
    background: #F8FAFC !important;
    padding: 6px 10px !important;
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
    min-height: 38px !important;
    border-radius: 6px !important;
    white-space: normal !important;
    word-break: break-word !important;
    color: #1F2937 !important;
    text-align: left !important;
  }

  /* Force single page guarantee */
  .print-area, .print-area * {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Print header and footer blocks */
  .print-only {
    display: block !important;
  }
  .screen-only {
    display: none !important;
  }
}

@media screen {
  .print-only {
    display: none !important;
  }
}

/* Form wrappers inside flex action groups & confirm forms */
form.inline,
form.inline-flex,
form[data-confirm] {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================================
   Global Loading States & Skeleton Utilities
   ========================================================================= */
#global-loading-bar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.loading-bar-inner {
  box-shadow: 0 0 10px rgba(216, 133, 30, 0.8), 0 0 5px rgba(94, 61, 34, 0.5);
}

.btn-loading {
  pointer-events: none !important;
  cursor: wait !important;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(94, 61, 34, 0.04) 25%,
    rgba(94, 61, 34, 0.09) 37%,
    rgba(94, 61, 34, 0.04) 63%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   Modern Multi-Grid Gallery Styles
   ========================================================================== */

/* Bento Grid Mode */
.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery-bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }
}

/* Bento Item Span Rules */
@media (min-width: 640px) {
  .gallery-bento-grid .bento-feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-bento-grid .bento-tall {
    grid-column: span 1;
    grid-row: span 2;
  }
  .gallery-bento-grid .bento-wide {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-bento-grid .bento-standard {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Fallback aspect ratios on mobile when grid-auto-rows is not active */
@media (max-width: 639px) {
  .gallery-bento-grid .bento-feature { aspect-ratio: 4 / 3; }
  .gallery-bento-grid .bento-tall { aspect-ratio: 3 / 4; }
  .gallery-bento-grid .bento-wide { aspect-ratio: 16 / 9; }
  .gallery-bento-grid .bento-standard { aspect-ratio: 1 / 1; }
}

/* Masonry Waterfall Mode */
.gallery-masonry-grid {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .gallery-masonry-grid {
    column-count: 4;
  }
}

.gallery-masonry-grid .gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.gallery-masonry-grid .bento-tall { aspect-ratio: 3 / 4; }
.gallery-masonry-grid .bento-feature { aspect-ratio: 4 / 3; }
.gallery-masonry-grid .bento-wide { aspect-ratio: 16 / 9; }
.gallery-masonry-grid .bento-standard { aspect-ratio: 1 / 1; }

/* Micro-interaction caption reveal */
.gallery-item .gallery-overlay {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item .gallery-caption-slide {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.gallery-item:hover .gallery-caption-slide {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}



