/* Gallery-specific layout: full photographs, with controls over the image. */
.gallery-main.page-aligned {
  max-width: 94rem;
  padding-inline: clamp(1rem, 2vw, 2rem);
}
.gallery-slider {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 1rem;
  text-align: left;
}
.gallery-slider .gallery-slide {
  grid-template-columns: minmax(0, 1fr) 23rem;
  gap: 1rem;
  align-items: stretch;
}
.gallery-slide[hidden] { display: none; }
.gallery-slider .gallery-image-wrap {
  position: relative;
  order: 0;
  height: clamp(23rem, calc(100vh - 10rem), 42rem);
  min-width: 0;
  aspect-ratio: auto;
  background: #252923;
  border-radius: 0.75rem;
  overflow: hidden;
}
.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-project-title {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 0.4rem;
  background: rgba(32, 37, 30, 0.9);
  color: #fff;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
  z-index: 1;
}
.gallery-architect-credit {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.3rem;
  background: rgba(32, 37, 30, 0.9);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  z-index: 1;
}
.gallery-image-wrap .gallery-architect-credit a {
  display: inline;
  width: auto;
  height: auto;
  color: inherit;
  text-underline-offset: 0.15em;
}
.gallery-slider .gallery-controls {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.gallery-controls .gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  background: rgba(32, 37, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: white;
  pointer-events: auto;
}
.gallery-controls .gallery-prev { left: 0.75rem; }
.gallery-controls .gallery-next { right: 0.75rem; }
.gallery-controls .gallery-btn:hover { background: #45694e; }
.gallery-controls .gallery-btn:focus-visible {
  outline: 0.1875rem solid white;
  box-shadow: 0 0 0 0.375rem #222;
}
.gallery-slider .gallery-description {
  order: 1;
  min-width: 0;
  width: auto;
  padding: 1.15rem;
  justify-content: center;
}
.gallery-description h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.gallery-description h3::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.75rem;
  background: #373630;
}
.gallery-description .gallery-project-details {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.gallery-project-details div {
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: 0.6rem;
}
.gallery-project-details dd { overflow-wrap: anywhere; }
.gallery-description a { color: #263d2b; text-underline-offset: 0.15em; }
.gallery-description .gallery-supplier-note {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(55, 54, 48, 0.3);
  font-size: 0.8rem;
  line-height: 1.5;
}
.lighting-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #45694e;
  border-radius: 0.3rem;
  background: #45694e;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lighting-trigger:hover { background: #354f3b; }
.lighting-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lighting-trigger:focus-visible { outline: 3px solid #292e29; outline-offset: 3px; }
.lighting-dialog {
  width: min(39rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.5rem;
  border: 1px solid #c4ac80;
  border-radius: 0.9rem;
  background: #f6f1e7;
  color: #292e29;
  overflow-y: auto;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}
.lighting-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.lighting-dialog-header { display: flex; align-items: start; gap: 1rem; justify-content: space-between; }
.lighting-eyebrow { margin: 0 0 0.4rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.lighting-dialog h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.lighting-close {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #45694e;
  border-radius: 50%;
  background: transparent;
  color: #292e29;
  font-size: 1.6rem;
  cursor: pointer;
}
#lighting-intro { font-size: 0.9rem; margin: 1rem 0; }
.lighting-brand { max-width: none; margin: 0; padding: 1rem 0; text-align: left; border-top: 1px solid #c4ac80; }
.lighting-brand h3 { margin: 0 0 0.75rem; font-size: 1.1rem; color: #354f3b; }
.lighting-brand ul { margin: 0; padding-left: 1.25rem; }
.lighting-brand li + li { margin-top: 0.85rem; }
.lighting-brand a { color: #263d2b; font-weight: 600; text-underline-offset: 0.2em; }
.lighting-brand p { margin: 0.15rem 0 0; font-size: 0.8rem; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-slide.active > .gallery-image-wrap > img { animation: gallery-reveal 180ms ease-out; }
  @keyframes gallery-reveal { from { opacity: 0.45; } to { opacity: 1; } }
}
@media (max-width: 64rem) {
  .gallery-slider .gallery-slide { grid-template-columns: minmax(0, 1fr); }
  .gallery-slider .gallery-image-wrap { height: auto; aspect-ratio: 3 / 4; max-height: 38rem; }
  .gallery-slider .gallery-description { padding: 1.25rem; }
  .gallery-project-details div { grid-template-columns: 8rem minmax(0, 1fr); }
}
@media (min-width: 64.001rem) and (max-height: 47rem) {
  .gallery-slider .gallery-description { padding: 0.75rem; }
  .gallery-description .gallery-project-details { gap: 0.35rem; margin: 0.65rem 0; }
  .gallery-project-details div { grid-template-columns: 6.25rem minmax(0, 1fr); }
  .gallery-description .gallery-supplier-note { padding-top: 0.5rem; }
}
@media (max-width: 48rem) {
  .gallery-slider { display: block; padding: 0.75rem; }
  .gallery-slider .gallery-slide.active { display: grid; gap: 0.75rem; }
  .gallery-slider .gallery-description { padding: 1rem; }
  .gallery-project-title { font-size: 1.1rem; }
}
@media (max-width: 24.375rem) {
  .gallery-project-details div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .lighting-dialog { padding: 1rem; }
}
