:root {
  --color-ink: #2f2a25;
  --color-paper: #ffffff;
  --color-ivory: #f5f1eb;
  --color-ivory-dark: #ebe5db;
  --color-muted: #706a63;
  --color-gold: #b99655;
  --color-gold-dark: #96753d;
  --color-burgundy: #3b1718;
  --color-burgundy-soft: #5a2424;
  --color-emerald: #17372f;
  --color-border: #e7dfd4;
  --shadow-soft: 0 14px 34px rgba(47, 42, 37, 0.1);
  --shadow-luxury: 0 28px 80px rgba(47, 23, 24, 0.18);
  --header-height: 90px;
  --max-width: 1180px;
  --scroll-shift: 0px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-quote: "Fraunces", Baskerville, "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-gold-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  min-height: var(--header-height);
  grid-template-areas: "menu brand lang book";
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(18px, 3.5vw, 54px);
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(47, 42, 37, 0.08);
  backdrop-filter: blur(10px);
  transition: opacity 700ms ease, transform 700ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.brand {
  grid-area: brand;
  justify-self: center;
  min-width: 0;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand__mark {
  display: none;
}

.brand__text {
  display: block;
  max-width: none;
  white-space: nowrap;
}

.nav-toggle {
  grid-area: menu;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 3px;
  padding: 0 18px;
  color: #fff;
  background: var(--color-gold);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 220ms ease, transform 220ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-2px);
  background: var(--color-gold-dark);
}

.nav-toggle::after {
  content: "Menu";
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle__bar::before {
  transform: translateY(-7px);
}

.nav-toggle__bar::after {
  transform: translateY(5px);
}

.header-booking {
  grid-area: book;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold);
  border-radius: 3px;
  padding: 0 18px;
  color: var(--color-gold-dark);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-booking:hover,
.header-booking:focus-visible,
.header-booking[aria-current="page"] {
  color: #fff;
  background: var(--color-gold);
}

.language-switch {
  grid-area: lang;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(185, 150, 85, 0.36);
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(47, 23, 24, 0.08);
}

.language-switch a {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--color-burgundy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switch a[aria-current="page"] {
  color: #fff;
  background: var(--color-gold);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: clamp(18px, 3.5vw, 54px);
  display: none;
  min-width: min(360px, calc(100vw - 36px));
  flex-direction: column;
  padding: 16px 24px;
  color: var(--color-ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform-origin: top left;
  animation: menuReveal 260ms ease both;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav a:last-child {
  border-bottom: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--color-gold-dark);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  margin-top: var(--header-height);
  padding: 48px 18px;
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 18, 14, 0.12), rgba(22, 18, 14, 0.46));
  content: "";
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(var(--scroll-shift)) scale(1.02);
  animation: heroCarousel 32s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-carousel img:nth-child(1) {
  opacity: 1;
  animation-name: heroCarouselFirst;
}

.hero-carousel img:nth-child(2) {
  animation-delay: 8s;
}

.hero-carousel img:nth-child(3) {
  animation-delay: 16s;
}

.hero-carousel img:nth-child(4) {
  animation-delay: 24s;
}

@keyframes heroCarousel {
  0%,
  100% {
    opacity: 0;
    transform: translateY(var(--scroll-shift)) scale(1.03);
  }

  6%,
  24% {
    opacity: 1;
    transform: translateY(var(--scroll-shift)) scale(1.045);
  }

  31% {
    opacity: 0;
    transform: translateY(var(--scroll-shift)) scale(1.07);
  }
}

@keyframes heroCarouselFirst {
  0%,
  24% {
    opacity: 1;
    transform: translateY(var(--scroll-shift)) scale(1.045);
  }

  31%,
  93% {
    opacity: 0;
    transform: translateY(var(--scroll-shift)) scale(1.07);
  }

  100% {
    opacity: 1;
    transform: translateY(var(--scroll-shift)) scale(1.045);
  }
}

@keyframes menuReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.hero__content--center {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: -6vh;
  animation: heroContentReveal 1000ms ease 180ms both;
}

@keyframes heroContentReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__caption {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1,
h2 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 500;
}

h1 {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(2.1rem, 6vw, 3.85rem);
}

h2 {
  max-width: 860px;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 13px 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  content: "";
  transform: translateX(-140%);
  transition: transform 650ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 14px 28px rgba(47, 42, 37, 0.13);
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(140%);
}

.button--primary {
  color: #fff;
  background: var(--color-gold);
}

.button--primary:hover,
.button--primary:focus-visible {
  color: #fff;
  background: var(--color-gold-dark);
}

.button--outline {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  background: transparent;
}

.button--outline:hover,
.button--outline:focus-visible {
  color: #fff;
  background: var(--color-gold);
}

.section {
  width: min(var(--max-width), calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(70px, 9vw, 118px) 0;
}

.section--warm {
  width: 100%;
  padding-inline: max(18px, calc((100% - var(--max-width)) / 2));
  background: var(--color-ivory);
}

.section__header {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

.section__header--center,
.intro--center {
  justify-items: center;
  text-align: center;
}

.intro__text {
  max-width: 920px;
  margin: 0 auto;
  color: var(--color-ink);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.card-grid {
  display: grid;
  gap: 28px;
}

.feature-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: transform 420ms ease;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 900ms ease, filter 900ms ease;
}

.feature-card:hover img,
.gallery__grid img:hover,
.blog-card:hover img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.045);
}

.feature-card div {
  padding: 24px 4px 0;
  text-align: center;
}

.feature-card h3 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.feature-card p,
.reviews p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.amenity-list {
  display: grid;
  gap: 1px;
  background: var(--color-border);
}

.amenity-list span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 18px;
  background: #fff;
  color: var(--color-muted);
  font-weight: 650;
  text-align: center;
}

.amenity-list__icon {
  flex-shrink: 0;
  color: var(--color-gold);
}

.amenity-list__label {
  line-height: 1.3;
}

.gallery__grid {
  display: grid;
  gap: 14px;
}

.gallery__grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  object-fit: cover;
  transition: transform 900ms ease, filter 900ms ease;
}

.gallery__item {
  margin: 0;
}

.gallery__item figcaption {
  margin: 0;
}

.review-grid {
  display: grid;
  gap: 24px;
}

blockquote {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 30px;
  background: #fff;
  box-shadow: none;
  transition: border-color 260ms ease, transform 260ms ease;
}

blockquote:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
}

cite {
  display: block;
  margin-top: 18px;
  color: var(--color-gold);
  font-style: normal;
  font-weight: 850;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  padding: 10px 18px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.trust-badge__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-gold);
}

.trust-badge__score {
  color: var(--color-ink);
  font-weight: 800;
}

.trust-badge__divider {
  color: var(--color-border);
}

.trust-badge__count {
  white-space: nowrap;
}

.review-featured {
  max-width: 760px;
  margin: 48px auto 40px;
  padding: 0 28px;
  text-align: center;
}

.review-featured__mark {
  display: block;
  margin-bottom: -22px;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-style: normal;
  line-height: 1;
  opacity: 0.5;
}

.review-featured blockquote {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.review-featured blockquote:hover {
  transform: none;
}

.review-featured blockquote p {
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1.4;
}

.review-featured figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.review-featured cite {
  margin: 0;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-card__rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-gold);
}

.review-card cite {
  margin-top: 6px;
}

.review-card__source {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact__layout {
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

address {
  color: var(--color-muted);
  font-style: normal;
}

address a {
  color: var(--color-gold-dark);
  font-weight: 750;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(185, 150, 85, 0.34);
  padding: 9px 12px;
  color: var(--color-burgundy);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  box-shadow: 0 14px 30px rgba(47, 23, 24, 0.09);
  transform: translateY(-2px);
}

.social-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 23, 24, 0.07);
  color: currentColor;
}

.social-icon svg {
  width: 19px;
  height: 19px;
}

.social-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-link:nth-child(2) .social-icon svg path {
  fill: currentColor;
  stroke: none;
}

.contact__booking {
  width: 100%;
}

.site-footer {
  display: grid;
  gap: 18px;
  justify-items: center;
  border-top: 1px solid var(--color-border);
  padding: 48px 18px;
  color: var(--color-muted);
  background: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.page-hero {
  position: relative;
  min-height: 58svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-top: var(--header-height);
  padding: 90px 18px 58px;
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.page-hero::before {
  z-index: -2;
  background-image: url("../images/riad-mazar-suite-doorway.jpg");
  background-position: center;
  background-size: cover;
  transform: translateY(calc(var(--scroll-shift) * 0.6)) scale(1.04);
  will-change: transform;
}

.booking-hero::before {
  background-image: url("../images/riad-mazar-window-suite.jpg");
}

.blog-hero::before {
  background-image: url("../images/riad-mazar-moroccan-lounge.jpg");
}

.page-hero::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 18, 14, 0.12), rgba(22, 18, 14, 0.58));
}

.page-hero__content {
  width: min(100%, 860px);
  margin-inline: auto;
  animation: heroContentReveal 900ms ease 120ms both;
}

.page-hero h1 {
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.page-hero__content p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 1.06rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.location-layout {
  display: grid;
  gap: 28px;
}

.map-frame {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: #ddd;
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.directions-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.directions-card address {
  color: var(--color-muted);
  text-align: left;
}

.directions-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
  color: var(--color-muted);
}

.attractions-grid {
  display: grid;
  gap: 16px;
}

.attractions-grid article {
  border: 1px solid var(--color-border);
  padding: 24px;
  background: #fff;
  text-align: center;
}

.attractions-grid h3 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 500;
}

.attractions-grid p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.booking-widget {
  display: grid;
  gap: 14px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.booking-field {
  display: grid;
  gap: 8px;
}

.booking-field label {
  color: var(--color-gold-dark);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 10px 12px;
  color: var(--color-ink);
  background: #fff;
  font: inherit;
}

.booking-field textarea {
  min-height: 132px;
  resize: vertical;
}

.booking-note {
  margin: 20px 0 0;
  color: var(--color-muted);
}

.booking-note code {
  color: var(--color-gold-dark);
  font-weight: 800;
}

.booking-results {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.rate-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.room-result-card {
  grid-template-columns: 1fr;
}

.rate-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rate-card p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.rate-card__price {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rate-card__price strong {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
}

.rate-card__price span {
  color: var(--color-muted);
}

.room-meta-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 18px 0 0;
  color: var(--color-muted);
}

.room-detail-layout {
  display: grid;
  gap: 34px;
}

.room-detail-gallery {
  display: grid;
  gap: 14px;
}

.room-detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-detail-panel {
  display: grid;
  gap: 22px;
  align-content: start;
}

.room-detail-panel p {
  margin: 0;
  color: var(--color-muted);
}

.room-detail-panel .eyebrow {
  margin: 0;
}

.room-amenity-list {
  background: transparent;
  gap: 8px;
}

.room-amenity-list span {
  min-height: 54px;
  border: 1px solid var(--color-border);
}

.booking-summary-card {
  display: grid;
  gap: 28px;
  border: 1px solid var(--color-border);
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.booking-summary-card p {
  color: var(--color-muted);
}

.booking-request-form {
  display: grid;
  gap: 16px;
}

.summary-list {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  background: var(--color-border);
}

.summary-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
}

.summary-list dt {
  color: var(--color-gold-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 0;
  color: var(--color-muted);
}

.blog-card-grid {
  display: grid;
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.blog-card:hover {
  box-shadow: 0 22px 46px rgba(47, 42, 37, 0.14);
  transform: translateY(-6px);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 900ms ease, filter 900ms ease;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms ease, transform 900ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.image-drift {
  overflow: hidden;
}

.image-drift img {
  transform: translateY(calc(var(--scroll-shift) * -0.05)) scale(1.02);
}

.blog-card div {
  padding: 28px;
}

.blog-card h3 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
}

.blog-card p:not(.eyebrow) {
  color: var(--color-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: var(--color-gold-dark);
  font-weight: 850;
}

.text-link::after {
  width: 44px;
  height: 1px;
  background: currentColor;
  content: "";
}

.article-body {
  max-width: 900px;
}

.article-lede {
  margin: 0 0 34px;
  color: var(--color-muted);
  font-size: 1.14rem;
  text-align: center;
}

.guide-list {
  display: grid;
  gap: 26px;
  padding-left: 26px;
}

.guide-list li::marker {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.guide-list h2 {
  font-size: clamp(1.45rem, 7vw, 2.25rem);
}

.guide-list p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.article-cta {
  display: grid;
  gap: 16px;
  margin-top: 44px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 30px;
  background: var(--color-ivory);
  text-align: center;
}

.article-cta h2 {
  font-size: clamp(1.6rem, 7vw, 2.4rem);
}

.article-cta p {
  margin: 0;
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-carousel img {
    animation: none;
  }

  .hero-carousel img:not(:first-child) {
    opacity: 0;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 118px;
  }

  .site-header {
    grid-template-areas:
      "menu lang book"
      "brand brand brand";
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .nav-toggle {
    min-height: 44px;
    padding-inline: 13px;
  }

  .nav-toggle::after {
    display: none;
  }

  .header-booking {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.74rem;
  }

  .brand {
    justify-self: center;
    font-size: clamp(1.4rem, 7vw, 2rem);
    letter-spacing: 0.04em;
  }

  .hero {
    min-height: calc(86svh - var(--header-height));
  }

  .button {
    width: 100%;
  }
}

@media (min-width: 620px) {
  .contact__booking {
    width: auto;
  }

  .amenity-list,
  .gallery__grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    justify-items: start;
    text-align: left;
    padding-inline: 32px;
  }
}

@media (min-width: 860px) {
  .hero {
    min-height: calc(86svh - var(--header-height));
  }

  .section--warm {
    padding-block: clamp(80px, 9vw, 120px);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .amenity-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .review-grid,
  .contact__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-widget {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
  }

  .booking-widget .button {
    min-height: 48px;
  }

  .rate-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .room-result-card {
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr) auto;
  }

  .rate-card__image {
    height: 100%;
    min-height: 220px;
  }

  .room-detail-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
    align-items: start;
  }

  .room-detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-detail-gallery img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .booking-summary-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .booking-request-form {
    min-width: min(520px, 42vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-field--full,
  .booking-request-form .booking-note,
  .booking-request-form .button {
    grid-column: 1 / -1;
  }

  .blog-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  }

  .blog-card img {
    height: 100%;
  }

  .page-hero {
    min-height: 58svh;
    padding: 104px clamp(24px, 5vw, 68px) 72px;
  }

  .page-hero__content p:not(.eyebrow) {
    font-size: 1.18rem;
  }

  .location-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    align-items: stretch;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 520px;
  }

  .attractions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Luxury redesign layer */
body {
  background:
    radial-gradient(circle at 14% 8%, rgba(185, 150, 85, 0.1), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #fbf8f2 48%, #fff 100%);
}

.site-header {
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: linear-gradient(180deg, rgba(33, 15, 14, 0.62), rgba(33, 15, 14, 0));
  box-shadow: none;
  backdrop-filter: none;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(47, 23, 24, 0.12);
  backdrop-filter: blur(16px);
}

.site-header--home .brand {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  letter-spacing: 0.04em;
}

.brand__logo {
  width: clamp(78px, 7.5vw, 106px);
  height: clamp(78px, 7.5vw, 106px);
  border: 1px solid rgba(185, 150, 85, 0.35);
  border-radius: 50%;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  object-fit: cover;
  transition: width 260ms ease, height 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled .brand__logo,
.site-header.is-open .brand__logo {
  width: clamp(54px, 5vw, 68px);
  height: clamp(54px, 5vw, 68px);
  box-shadow: 0 10px 28px rgba(59, 23, 24, 0.16);
}

.brand__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle,
.header-booking,
.button {
  border-radius: 0;
}

.nav-toggle {
  background: var(--color-burgundy);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--color-burgundy-soft);
}

.header-booking {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(33, 15, 14, 0.2);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled .header-booking,
.site-header.is-open .header-booking {
  border-color: var(--color-gold);
  color: var(--color-burgundy);
  background: rgba(255, 255, 255, 0.54);
}

.header-booking:hover,
.header-booking:focus-visible,
.header-booking[aria-current="page"] {
  border-color: var(--color-burgundy);
  background: var(--color-burgundy);
}

.site-header:not(.is-scrolled):not(.is-open) .language-switch {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(33, 15, 14, 0.22);
  backdrop-filter: blur(12px);
}

.site-header:not(.is-scrolled):not(.is-open) .language-switch a {
  color: #fff;
}

.site-header:not(.is-scrolled):not(.is-open) .language-switch a[aria-current="page"] {
  color: var(--color-burgundy);
  background: #fff;
}

.site-nav {
  border: 1px solid rgba(185, 150, 85, 0.2);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
}

.hero--luxury {
  min-height: 100svh;
  align-items: center;
  margin-top: 0;
  padding: calc(var(--header-height) + clamp(28px, 4vw, 58px)) 18px 92px;
}

.hero--luxury::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(33, 15, 14, 0.58) 0%, rgba(33, 15, 14, 0.32) 35%, transparent 68%),
    linear-gradient(90deg, rgba(33, 15, 14, 0.72), rgba(33, 15, 14, 0.18) 48%, rgba(33, 15, 14, 0.52)),
    linear-gradient(180deg, rgba(33, 15, 14, 0.08), rgba(33, 15, 14, 0.62));
  content: "";
}

.hero--luxury::after {
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin: clamp(18px, 3vw, 42px);
  background: transparent;
  pointer-events: none;
}

.hero--luxury .hero-carousel img {
  filter: saturate(1.08) contrast(1.05);
  transform: translateY(var(--scroll-shift)) scale(1.03);
  animation-duration: 32s;
}

.hero--luxury .hero-carousel img:nth-child(2) {
  animation-delay: 8s;
}

.hero--luxury .hero-carousel img:nth-child(3) {
  animation-delay: 16s;
}

.hero--luxury .hero-carousel img:nth-child(4) {
  animation-delay: 24s;
}

.hero--luxury .hero-carousel img:first-child {
  object-position: center 74%;
}

.hero--luxury .hero-carousel img:nth-child(2) {
  object-position: center 82%;
}

.hero--luxury .hero-carousel img:nth-child(3),
.hero--luxury .hero-carousel img:nth-child(4) {
  object-position: center 54%;
}

.hero__content--center {
  position: relative;
  z-index: 1;
  isolation: isolate;
  gap: 14px;
  max-width: min(960px, calc(100% - 28px));
  margin-top: 0;
}

.hero__content--center::before {
  position: absolute;
  z-index: -1;
  inset: -42px -72px;
  background: radial-gradient(ellipse at center, rgba(33, 15, 14, 0.42), rgba(33, 15, 14, 0.18) 42%, transparent 72%);
  content: "";
  filter: blur(8px);
  pointer-events: none;
}

.hero__logo {
  width: clamp(156px, 17vw, 242px);
  height: clamp(156px, 17vw, 242px);
  border-radius: 50%;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  object-fit: cover;
}

.hero__eyebrow {
  color: #ead6a3;
}

.hero__quote {
  max-width: min(780px, 92vw);
  margin: 0;
  color: #fff0bd;
  font-family: var(--font-quote);
  font-size: clamp(1.45rem, 2.55vw, 2.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.66), 0 22px 48px rgba(0, 0, 0, 0.38);
}

.hero__caption {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.66);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.button--glass {
  border-color: rgba(255, 255, 255, 0.64);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.button--glass:hover,
.button--glass:focus-visible {
  color: var(--color-burgundy);
  background: #fff;
}

.hero__footnote {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 4vw, 64px);
  bottom: 24px;
  left: clamp(18px, 4vw, 64px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__footnote span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero__footnote span + span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  content: "";
}

.luxury-intro {
  padding-top: clamp(72px, 9vw, 130px);
}

.luxury-intro h1 {
  color: var(--color-burgundy);
}

.luxury-intro .eyebrow {
  color: var(--color-gold-dark);
}

.luxury-intro .intro__text {
  color: #453a33;
  font-family: var(--font-display);
  font-size: clamp(1.13rem, 2.1vw, 1.42rem);
  line-height: 1.72;
}

.section--edge {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.story-panel {
  display: grid;
  background: var(--color-burgundy);
  color: #fff;
}

.story-panel--reverse {
  background: var(--color-emerald);
}

.story-panel__image {
  min-height: min(620px, 76svh);
  overflow: hidden;
}

.story-panel__image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: translateY(calc(var(--scroll-shift) * -0.03)) scale(1.04);
  transition: transform 1200ms ease, filter 1200ms ease;
}

.story-panel__copy {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(44px, 8vw, 104px) clamp(24px, 7vw, 92px);
}

.story-panel__copy h2 {
  color: #f4d996;
}

.story-panel__copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.story-panel .text-link {
  color: #f4d996;
}

.luxury-stats {
  display: grid;
  gap: 1px;
  background: rgba(185, 150, 85, 0.24);
}

.luxury-stat {
  display: grid;
  min-height: 154px;
  place-items: center;
  gap: 6px;
  padding: 28px;
  background: #fbf8f2;
  text-align: center;
}

.luxury-stat strong {
  color: var(--color-burgundy);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.luxury-stat span {
  color: var(--color-muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-card-grid .feature-card {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1f1714;
  box-shadow: var(--shadow-luxury);
}

.room-card-grid .feature-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  filter: brightness(0.76) saturate(1.04);
}

.room-card-grid .feature-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 64%;
  background: linear-gradient(180deg, transparent, rgba(18, 13, 10, 0.86));
  content: "";
}

.room-card-grid .feature-card div {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fff;
  text-align: left;
}

.room-card-grid .feature-card h3 {
  color: #f4d996;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.room-card-grid .feature-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
}

.room-card-grid .button {
  width: auto;
  margin-top: 18px;
}

.feature-card__price {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(20, 14, 11, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.feature-card__price span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.experience-section {
  background:
    linear-gradient(135deg, rgba(185, 150, 85, 0.1), transparent 38%),
    var(--color-ivory);
}

.experience-row {
  display: grid;
  gap: 28px;
  align-items: start;
}

.experience-row__copy {
  border-left: 1px solid var(--color-gold);
  padding-left: 24px;
}

.experience-row__copy p {
  max-width: 620px;
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

.experience-row .amenity-list {
  box-shadow: var(--shadow-soft);
}

.experience-row .amenity-list span {
  min-height: 92px;
  background: rgba(255, 255, 255, 0.86);
}

.gallery--editorial {
  width: min(1360px, calc(100% - 36px));
}

.gallery--editorial .gallery__grid {
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(10px, 1.2vw, 18px);
  background:
    linear-gradient(135deg, rgba(255, 240, 189, 0.08), transparent 34%),
    var(--color-burgundy);
  box-shadow: var(--shadow-luxury);
}

.gallery--editorial .gallery__item {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #1f1714;
  isolation: isolate;
}

.gallery--editorial .gallery__item::after {
  position: absolute;
  inset: 38% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(18, 11, 10, 0.78));
  content: "";
  pointer-events: none;
}

.gallery--editorial .gallery__item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: auto;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04) brightness(0.92);
  transition: transform 1100ms ease, filter 1100ms ease;
}

.gallery--editorial .gallery__item:hover img {
  filter: saturate(1.08) contrast(1.06) brightness(0.98);
  transform: translateY(calc(var(--scroll-shift) * -0.05)) scale(1.055);
}

.gallery--editorial .gallery__item figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.28rem);
  line-height: 1.45;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.reviews--luxury blockquote {
  border-color: rgba(185, 150, 85, 0.3);
  background:
    linear-gradient(135deg, rgba(185, 150, 85, 0.08), transparent 42%),
    #fff;
  box-shadow: 0 20px 54px rgba(47, 23, 24, 0.08);
}

.page-hero {
  min-height: clamp(520px, 66svh, 760px);
  margin-top: 0;
  padding-top: calc(var(--header-height) + 72px);
}

.page-hero::before {
  background-image: url("../images/riad-mazar-courtyard-pool.jpg");
}

.booking-hero::before {
  background-image: url("../images/riad-mazar-window-suite.jpg");
  background-position: center 52%;
}

.rooms-hero::before {
  background-image: url("../images/riad-mazar-blue-room.jpg");
  background-position: center 54%;
}

.location-hero::before {
  background-image: url("../images/riad-mazar-balcony-detail.jpg");
  background-position: center;
}

.blog-hero::before {
  background-image: url("../images/riad-mazar-candle-ritual.jpg");
  background-position: center 52%;
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(42, 17, 17, 0.72), rgba(42, 17, 17, 0.22)),
    linear-gradient(180deg, rgba(42, 17, 17, 0.08), rgba(42, 17, 17, 0.64));
}

.page-hero h1 {
  color: #f4d996;
}

.booking-widget,
.rate-card,
.booking-summary-card,
.directions-card,
.attractions-grid article,
.blog-card,
.article-cta {
  border-color: rgba(185, 150, 85, 0.26);
  box-shadow: 0 22px 60px rgba(47, 23, 24, 0.08);
}

.booking-field label,
.summary-list dt {
  color: var(--color-burgundy);
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  background: #fbf8f2;
}

.room-detail-gallery img,
.rate-card__image,
.blog-card img {
  filter: saturate(1.02) contrast(1.02);
}

@media (max-width: 700px) {
  :root {
    --header-height: 92px;
  }

  .site-header {
    grid-template-areas: "menu brand book";
    grid-template-columns: auto minmax(66px, 1fr) auto;
    min-height: var(--header-height);
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
  }

  .brand {
    gap: 0;
  }

  .brand__logo {
    width: 66px;
    height: 66px;
  }

  .site-header.is-scrolled .brand__logo,
  .site-header.is-open .brand__logo {
    width: 48px;
    height: 48px;
  }

  .hero--luxury {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 108px;
  }

  .hero__actions,
  .intro__actions {
    width: min(100%, 340px);
  }

  .hero__footnote {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .hero__footnote span + span::before {
    display: none;
  }

  .room-card-grid .feature-card {
    min-height: 430px;
  }

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (min-width: 760px) {
  .luxury-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .experience-row {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .story-panel {
    grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  }

  .story-panel--reverse .story-panel__image {
    order: 2;
  }

  .story-panel--reverse {
    grid-template-columns: minmax(390px, 0.94fr) minmax(0, 1.06fr);
  }

  .gallery--editorial .gallery__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(205px, 14vw);
  }

  .gallery--editorial .gallery__item {
    min-height: 0;
  }

  .gallery--editorial .gallery__item--feature {
    grid-column: span 5;
    grid-row: span 3;
  }

  .gallery--editorial .gallery__item--tall {
    grid-column: span 3;
    grid-row: span 3;
  }

  .gallery--editorial .gallery__item:not(.gallery__item--feature, .gallery__item--tall, .gallery__item--wide) {
    grid-column: span 4;
    grid-row: span 1;
  }

  .gallery--editorial .gallery__item--wide {
    grid-column: span 4;
    grid-row: span 1;
  }
}

[data-lightbox-gallery] img,
.room-detail-gallery img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(15, 11, 9, 0.92);
  opacity: 0;
  transition: opacity 280ms ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__figure {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: min(1100px, 100%);
  max-height: 100%;
  margin: 0;
  transform: scale(0.97);
  transition: transform 280ms ease;
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__image {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: var(--shadow-luxury);
}

.lightbox__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__close {
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

.lightbox__nav--prev {
  left: clamp(8px, 2vw, 24px);
}

.lightbox__nav--next {
  right: clamp(8px, 2vw, 24px);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__figure {
    transition: none;
  }
}

@media (max-width: 700px) {
  .lightbox__close,
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
}
