/* Further layout, gallery, banner, lightbox and Ercol page.
   Loaded after styles.css. */

@media (min-width: 1600px) {
  :root { --measure: 96rem; }
}

/* ——— Sticky chrome (banner + header) so the page uses the full desktop width ——— */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header {
  position: relative;
  inset: auto;
  background: rgba(11, 14, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-tel {
  color: var(--brass-soft);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  padding: 0.25rem 0;
  white-space: nowrap;
}
.nav-tel:hover { color: var(--ivory); }
.site-nav a.nav-tel::after { display: none; }

@media (max-width: 1180px) {
  .nav-tel { display: none; }
  .site-nav.is-open .nav-tel { display: inline; }
}

/* ——— Seasonal banner ———
   Switch off in js/main.js: set SHOW_SEASONAL_BANNER = false */
.seasonal-banner {
  display: none;
  background: linear-gradient(180deg, #16140f 0%, #12110c 100%);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ivory);
  text-align: center;
  padding: 0.7rem 3rem 0.7rem 1.25rem;
  position: relative;
}
body.has-seasonal-banner .seasonal-banner { display: block; }

.seasonal-banner__text {
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  max-width: 72rem;
  margin: 0 auto;
  color: var(--ivory-dim);
}
.seasonal-banner__text strong {
  color: var(--brass-soft);
  font-weight: 400;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05em;
  letter-spacing: 0.02em;
}
.seasonal-banner__text a {
  color: var(--brass-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 400;
  border-bottom: 1px solid var(--line-strong);
  margin-left: 0.35rem;
}
.seasonal-banner__text a:hover { color: var(--ivory); }

.seasonal-banner__close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--brass);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.seasonal-banner__close:hover { color: var(--ivory); }

/* ——— Split hero (full-bleed on desktop) ——— */
.hero.hero--split {
  display: grid;
  grid-template-columns: minmax(22rem, 1fr) minmax(22rem, 1.05fr);
  min-height: calc(100svh - var(--header-h) - var(--banner-h, 0px));
  min-height: calc(100vh - var(--header-h) - var(--banner-h, 0px));
  padding: 0;
  text-align: left;
  overflow: hidden;
  place-items: stretch;
}
.hero.hero--split::before { display: none; }
.hero.hero--split .hero__glow { display: none; }

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.75rem, 5vw, 5.5rem);
  position: relative;
  z-index: 2;
}
.hero.hero--split .hero__monogram { margin: 0 0 1.8rem; }
.hero.hero--split .hero__title { letter-spacing: 0.06em; }
.hero.hero--split hr.rule { margin-left: 0; }
.hero.hero--split .hero__actions { justify-content: flex-start; }
.hero.hero--split .hero__scroll { display: none; }
.hero.hero--split .hero__sub { margin-left: 0; max-width: 28rem; }

.hero__photo {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  background: var(--panel);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(196, 160, 86, 0.22);
  pointer-events: none;
}

.hero__callout {
  display: none;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border: 1px solid var(--line);
  max-width: 26rem;
  background: rgba(22, 28, 24, 0.6);
}
body.has-seasonal-banner .hero__callout { display: block; }
.hero__callout p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ivory);
  margin: 0 0 0.55rem;
}
.hero__callout span,
.hero__callout a {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.hero__callout a { border-bottom: 1px solid var(--line-strong); }
.hero__callout a:hover { color: var(--ivory); }

/* ——— Craft photograph ——— */
.about__aside {
  padding: 0;
  min-height: 28rem;
  overflow: hidden;
}
.about__aside-photo {
  position: absolute;
  inset: 0;
}
.about__aside-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.about__aside-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem 1.6rem;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 14, 12, 0.88) 100%);
}
.about__aside-mark { display: none; }
.about__aside blockquote { margin: 0 0 0.75rem; font-size: clamp(1.3rem, 2vw, 1.7rem); }

/* ——— Photo gallery ——— */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.gallery__item {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--full { grid-column: 1 / -1; }

.gallery__link {
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.gallery__link:hover { color: inherit; }
.gallery__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
}
.gallery__item--wide .gallery__frame,
.gallery__item--full .gallery__frame { aspect-ratio: 16 / 10; }

.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery__link:hover img { transform: scale(1.03); }

.gallery__item figcaption {
  padding: 0.95rem 1.05rem 1.05rem;
  border-top: 1px solid var(--line);
}
.gallery__item .frame__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ivory);
  display: block;
}
.gallery__item .frame__hint { display: none; }

/* Placeholder tiles (Ercol page, future photos) */
.gallery__item.is-placeholder .gallery__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(196, 160, 86, 0.05), transparent 45%),
    var(--panel);
}
.gallery__item.is-placeholder .gallery__frame img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  opacity: 0.85;
}
.gallery__item.is-placeholder .frame__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 10, 9, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 100%;
  text-align: center;
}
.lightbox__figure img {
  max-width: 92vw;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--line);
}
.lightbox__caption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ivory);
  margin-top: 1rem;
  font-size: 1.2rem;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--brass-soft);
  cursor: pointer;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.2rem;
  line-height: 1;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { border-color: var(--brass); color: var(--ivory); }

/* ——— Form photo note ——— */
.form__photo-note {
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  margin: 0 0 1.2rem;
  color: var(--ivory);
  font-size: 0.95rem;
  background: rgba(196, 160, 86, 0.05);
}
.form__photo-note strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}

/* ——— Footer contacts ——— */
.footer__contacts {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.footer__contacts a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.footer__contacts a:hover { color: var(--brass-soft); }

/* ——— Ercol page ——— */
.page-hero {
  padding: calc(var(--header-h) * 0.15) 0 0;
}
.page-hero .wrap { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.ercol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ercol-point {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2rem 1.7rem 1.8rem;
}
.ercol-point h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--ivory);
  margin: 0.9rem 0 0.7rem;
}
.ercol-disclaimer {
  font-size: 0.82rem;
  color: var(--ivory-mute);
  letter-spacing: 0.04em;
  margin-top: 2.5rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.site-nav a[aria-current="page"] { color: var(--ivory); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 980px) {
  .hero.hero--split {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }
  .hero.hero--split .hero__monogram { margin-left: auto; margin-right: auto; }
  .hero.hero--split hr.rule { margin-left: auto; margin-right: auto; }
  .hero.hero--split .hero__actions,
  .hero.hero--split .hero__sub { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero.hero--split .hero__copy { padding: 3rem var(--gutter) 2.25rem; }
  .hero__photo { min-height: 22rem; max-height: 70vh; }
  .hero__callout { margin-left: auto; margin-right: auto; text-align: left; }
  .gallery__grid,
  .ercol-grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide,
  .gallery__item--full { grid-column: span 2; }
  .footer__contacts { justify-self: center; align-items: center; }
}

@media (max-width: 760px) {
  .gallery__grid,
  .ercol-grid { grid-template-columns: 1fr; }
  .gallery__item--wide,
  .gallery__item--full { grid-column: auto; }
  .gallery__item--wide .gallery__frame,
  .gallery__item--full .gallery__frame { aspect-ratio: 4 / 3; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { left: 1rem; }
  .lightbox__next { right: 1rem; }
  .about__aside,
  .about__aside-content { min-height: 22rem; }
}

.hero__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.about__aside-mark { display: block; }
.about__aside:has(.about__aside-photo) .about__aside-mark { display: none; }
.about__aside:not(:has(.about__aside-photo)) {
  padding: 3rem 2.25rem;
  min-height: 18rem;
}

/* Gallery photographs must fill the frame (picture otherwise collapses to 0 height) */
.gallery__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.about__aside-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Keep the split-hero wordmark visible and comfortably sized on large screens */
.hero.hero--split .hero__monogram,
.hero.hero--split .hero__title,
.hero.hero--split .hero__title span,
.hero.hero--split hr.rule,
.hero.hero--split .hero__tagline,
.hero.hero--split .hero__sub,
.hero.hero--split .hero__actions {
  animation: none;
  opacity: 1;
  transform: none;
}
.hero.hero--split .hero__title {
  font-size: clamp(2.4rem, 5vw, 5rem);
  letter-spacing: 0.06em;
  max-width: 100%;
}
.hero.hero--split { overflow: visible; }

.gallery__frame {
  position: relative;
}
.gallery__frame picture,
.gallery__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
