/* Gallery extends the existing Maison Roma identity without changing the storefront. */
.gallery-preview {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.2rem, 6vw, 7rem);
  background: var(--white);
  color: var(--ink);
  scroll-margin-top: 76px;
}
.gallery-legacy-anchor { position: absolute; top: 0; scroll-margin-top: 76px; }
.gallery-preview-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.gallery-preview-top p { margin: 0; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.gallery-preview-top p:last-child { color: #53504b; }
.gallery-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .55fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
  margin-top: 2.5rem;
}
.gallery-preview-brand { margin: 0 0 .5rem; font-size: .875rem; letter-spacing: .18em; text-transform: uppercase; }
.gallery-preview h2 { margin: 0; font: 400 clamp(3.5rem, 8vw, 7rem)/1.08 var(--serif); letter-spacing: -.025em; }
.gallery-preview-description { max-width: 35rem; margin: 1.5rem 0 2rem; color: #53504b; font-size: 1rem; line-height: 1.65; }
.gallery-preview-image { display: block; width: 100%; height: clamp(230px, 28vw, 350px); object-fit: cover; object-position: 50% 32%; }
.gallery-text-link { display: inline-flex; align-items: center; gap: 1.5rem; padding: .75rem 0; border-bottom: 1px solid #77746d; font-size: .875rem; line-height: 1.5; letter-spacing: .03em; }
.gallery-text-link span { transition: transform .2s ease; }
.gallery-text-link:hover span { transform: translateX(4px); }
.gallery-text-link:hover { border-color: currentColor; }

.gallery-page { background: var(--paper); color: var(--ink); color-scheme: light; }
.gallery-header {
  min-height: 96px;
  padding: 1rem clamp(1.2rem, 4vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 2rem;
  border-bottom: 1px solid #373634;
  background: var(--ink);
  color: var(--white);
}
.gallery-page > .gallery-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.gallery-header .wordmark { font-size: 1.25rem; }
.gallery-worlds { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.gallery-worlds a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: #c6c2b8; }
.gallery-worlds a[aria-current="page"] { color: var(--white); border-color: var(--white); }
.gallery-worlds a:hover { color: var(--white); border-color: currentColor; }
.gallery-page .gallery-worlds a { color: #53504b; }
.gallery-page .gallery-worlds a[aria-current="page"],
.gallery-page .gallery-worlds a:hover { color: var(--ink); border-color: currentColor; }

/* The same primary switcher stays visible in both houses, including on mobile. */
.parfums-page { --maison-header-height: 72px; }
.site-header.parfums-header,
.site-header.parfums-header.scrolled,
.site-header.parfums-header.menu-active {
  position: sticky;
  inset: var(--maison-announcement-height, 36px) 0 auto;
  height: auto;
  min-height: 72px;
  padding: .5rem clamp(1.2rem, 4vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(1.25rem, 2.5vw, 2.5rem);
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid #373634;
  backdrop-filter: none;
}
.parfums-header .gallery-header {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
}
.parfums-toolbar {
  min-height: 44px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem 1.5rem;
}
.parfums-toolbar .desktop-nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(1rem, 1.8vw, 2rem); }
.parfums-toolbar .desktop-nav > a,
.parfums-toolbar .search-button { min-height: 44px; display: inline-flex; align-items: center; }
.parfums-toolbar .desktop-nav > a::after { bottom: 0; }
.parfums-page .hero-meta { top: 1.5rem; }
.parfums-page main [id],
.parfums-page .gallery-legacy-anchor { scroll-margin-top: calc(var(--maison-header-height) + 1rem); }
.parfums-page .mobile-nav { top: calc(var(--maison-announcement-height, 36px) + var(--maison-header-height)); }

.gallery-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(800px, calc(100svh - 96px)); }
.gallery-copy {
  min-width: 0;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.gallery-eyebrow { margin: 0 0 1.25rem; font-size: .875rem; letter-spacing: .24em; text-transform: uppercase; color: #53504b; }
.gallery-copy h1 { max-width: 100%; margin: 0 0 1.75rem; font: 400 clamp(3.5rem, 8vw, 8.5rem)/1.04 var(--serif); letter-spacing: -.035em; overflow-wrap: break-word; }
.gallery-tagline { margin: 0; font-size: clamp(1rem, 1.5vw, 1.375rem); font-weight: 300; line-height: 1.65; }
.gallery-introduction { margin-top: clamp(3rem, 5vw, 5rem); }
.gallery-launch { display: inline-block; margin: 0 0 1.25rem; padding: 0 0 .45rem; border-bottom: 1px solid #77746d; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; }
.gallery-introduction > p:last-child { max-width: 35ch; margin: 0; color: #53504b; font-size: 1rem; line-height: 1.75; }
.gallery-copy > .gallery-text-link { margin-top: 2rem; }
.gallery-hero-image { position: relative; min-height: 600px; margin: 0; overflow: hidden; background: var(--paper); }
.gallery-hero-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.gallery-directory { padding: 2.5rem clamp(1.2rem, 4vw, 4.5rem); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.5rem 2.5rem; border-bottom: 1px solid var(--line); }
.gallery-directory h2 { margin: 0; font-size: .875rem; font-weight: 400; color: #53504b; }
.gallery-directory ul { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.25rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.gallery-directory li { font-size: .875rem; letter-spacing: .045em; }
.gallery-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2.5rem; padding: 3.5rem clamp(1.2rem, 4vw, 4.5rem) 2rem; background: var(--white); }
.gallery-footer-brand { font: 400 1.65rem/1.3 var(--serif); text-transform: uppercase; }
.gallery-footer p { margin: .75rem 0 0; font-size: .875rem; color: #53504b; }
.gallery-contact { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; font-size: .875rem; }
.gallery-contact a { overflow-wrap: anywhere; }
.gallery-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.gallery-footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-top: 1.5rem; }
.gallery-footer-bottom p { margin: 0; font-size: .75rem; }
.gallery-footer-bottom nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .875rem; }

@media (min-width: 821px) and (max-width: 1100px) {
  .parfums-page { --maison-header-height: 105px; }
  .parfums-header .gallery-header { flex-basis: 100%; }
  .parfums-toolbar { width: 100%; }
  .gallery-page .gallery-copy { padding-inline: 2rem; }
  .gallery-desktop-break { display: none; }
}
@media (max-width: 820px) {
  .parfums-page { --maison-header-height: 97px; }
  .site-header.parfums-header,
  .site-header.parfums-header.scrolled,
  .site-header.parfums-header.menu-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 97px;
    padding-block: .25rem;
    gap: 0 1rem;
  }
  .parfums-header .gallery-header,
  .parfums-toolbar { display: contents; }
  .parfums-header .wordmark { grid-column: 1; grid-row: 1; }
  .parfums-header .gallery-worlds { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .parfums-toolbar .desktop-nav { display: none; }
  .parfums-toolbar .menu-button { grid-column: 2; grid-row: 1; width: 44px; height: 44px; padding: 10px; }
  .gallery-header { min-height: 82px; }
  .gallery-header .wordmark { font-size: 1.1rem; }
  .gallery-worlds { gap: 1.25rem; }
  .gallery-worlds a { letter-spacing: .05em; }
  .gallery-hero { grid-template-columns: 1fr; min-height: 0; }
  .gallery-copy { padding: 3rem 1.5rem; }
  .gallery-copy h1 { font-size: clamp(3.5rem, 15vw, 6.5rem); margin-bottom: 1.25rem; }
  .gallery-eyebrow { margin-bottom: .75rem; }
  .gallery-tagline { font-size: 1.125rem; }
  .gallery-introduction { margin-top: 2.5rem; }
  .gallery-copy > .gallery-text-link { margin-top: 1.25rem; }
  .gallery-hero-image { min-height: 0; aspect-ratio: 1 / 1; }
  .gallery-hero-image img { object-position: 50% 28%; }
  .gallery-directory { padding-block: 2rem; }
  .gallery-directory h2 { flex-basis: 100%; }
  .gallery-footer { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-contact { align-items: flex-start; }
  .gallery-footer-bottom { margin-top: .5rem; }
  .gallery-preview-grid { gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); }
  .gallery-preview h2 { font-size: clamp(3rem, 7vw, 4.5rem); }
  .gallery-preview-image { height: 280px; }
}
@media (max-width: 540px) {
  .gallery-preview-grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .gallery-preview h2 { font-size: 3.75rem; }
  .gallery-preview-image { height: 220px; object-position: 50% 25%; }
  .gallery-preview-description { margin-block: 1rem; }
  .gallery-header { gap: .25rem 1rem; }
  .gallery-desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-text-link span { transition: none; }
}
