/* ==========================================================================
   pages/hotel-gallery.css
   Loaded only on:
     /<resort>/gallery
   Loaded after these shared / component files (see src/components/common/PageStyles.jsx):
     shared/all-pages.css
     shared/inner-pages.css
     shared/hotel-inner-pages.css
     components/page-banner.css
     components/page-intro.css
   Everything below is used by this page only.
   Loaded after this file:
     shared/all-pages.after.css
     shared/inner-pages.after.css
     shared/hotel-inner-pages.after.css
     components/footer.css
     components/footer.inner.css
   ========================================================================== */

html[data-cc-page] .gallery-card {
  animation: galleryCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-cc-page],
html[data-cc-page] * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* HEADER */

/* MOTION */

html[data-cc-page] .reveal,
html[data-cc-page] .reveal-left,
html[data-cc-page] .reveal-right {
  opacity: 0;
  transition: opacity .85s ease,transform 1s cubic-bezier(.22,1,.36,1);
}

html[data-cc-page] .reveal {
  transform: translateY(44px);
}

html[data-cc-page] .reveal-left {
  transform: translateX(-60px);
}

html[data-cc-page] .reveal-right {
  transform: translateX(60px);
}

html[data-cc-page] .reveal.in-view,
html[data-cc-page] .reveal-left.in-view,
html[data-cc-page] .reveal-right.in-view {
  opacity: 1;
  transform: none;
}

html[data-cc-page] .stagger>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease,transform .8s cubic-bezier(.22,1,.36,1);
}

html[data-cc-page] .stagger.in-view>* {
  opacity: 1;
  transform: none;
}

html[data-cc-page] .scrolltop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s;
}

/* Final Demo v2 - hotel navigation clarity */

/* keep section titles premium but proportional */

/* V9 - filterable gallery + full lightbox */

html[data-cc-page] .gallery-section {
  padding: 0 0 115px;
  background: #fff;
}

html[data-cc-page] .gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto 38px;
}

html[data-cc-page] .gallery-filter {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid #ded7da;
  background: #fff;
  color: #433f41;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: .25s;
}

html[data-cc-page] .gallery-filter:hover,
html[data-cc-page] .gallery-filter.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  transform: translateY(-2px);
}

html[data-cc-page] .gallery-grid-v9 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

html[data-cc-page] .gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f2eff0;
  cursor: zoom-in;
  transition: opacity .32s ease,transform .32s ease;
}

html[data-cc-page] .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.22,1,.36,1),filter .35s ease;
}

html[data-cc-page] .gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,transparent 55%,rgba(0,0,0,.58));
  opacity: .65;
  transition: opacity .3s ease;
}

html[data-cc-page] .gallery-card:hover img {
  transform: scale(1.045);
}

html[data-cc-page] .gallery-card:hover::after {
  opacity: .85;
}

html[data-cc-page] .gallery-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

html[data-cc-page] .gallery-card figcaption i {
  font-size: 12px;
}

html[data-cc-page] .gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,9,.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease,visibility .28s ease;
  padding: 72px 86px;
}

html[data-cc-page] .gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

html[data-cc-page] .gallery-lightbox-stage {
  position: relative;
  width: min(1200px,100%);
  height: min(78vh,820px);
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-cc-page] .gallery-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

html[data-cc-page] .gallery-lightbox-close,
html[data-cc-page] .gallery-lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.09);
  display: grid;
  place-items: center;
  transition: .25s;
  z-index: 3;
}

html[data-cc-page] .gallery-lightbox-close:hover,
html[data-cc-page] .gallery-lightbox-nav:hover {
  background: var(--pink);
}

html[data-cc-page] .gallery-lightbox-close {
  right: 24px;
  top: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 19px;
}

html[data-cc-page] .gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 62px;
  font-size: 17px;
}

html[data-cc-page] .gallery-lightbox-prev {
  left: 24px;
}

html[data-cc-page] .gallery-lightbox-next {
  right: 24px;
}

html[data-cc-page] .gallery-lightbox-meta {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: rgba(0,0,0,.35);
  padding: 10px 14px;
}

html[data-cc-page] .gallery-lightbox-caption {
  margin-right: 18px;
  color: rgba(255,255,255,.78);
}

@media (max-width:900px) {
  html[data-cc-page] .gallery-grid-v9 {
    grid-template-columns: repeat(2,1fr);
  }

  html[data-cc-page] .gallery-lightbox {
    padding: 70px 24px;
  }

  html[data-cc-page] .gallery-lightbox-nav {
    width: 44px;
    height: 54px;
  }

  html[data-cc-page] .gallery-lightbox-prev {
    left: 8px;
  }

  html[data-cc-page] .gallery-lightbox-next {
    right: 8px;
  }
}

@media (max-width:560px) {
  html[data-cc-page] .gallery-grid-v9 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html[data-cc-page] .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  html[data-cc-page] .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  html[data-cc-page] .gallery-filter {
    flex: 0 0 auto;
  }

  html[data-cc-page] .gallery-lightbox {
    padding: 64px 10px;
  }

  html[data-cc-page] .gallery-lightbox-close {
    right: 10px;
    top: 10px;
  }

  html[data-cc-page] .gallery-lightbox-meta {
    bottom: 12px;
    white-space: nowrap;
  }

  html[data-cc-page] .gallery-lightbox-caption {
    display: none;
  }
}

/* FINAL DEMO V10 - global header/menu consistency + hero legibility */

/* Group menu */
