﻿.nav-extra[aria-current="page"] { color: var(--rust); text-decoration: underline; }
.photo-preview { background: var(--plum); color: var(--cream); }
.photo-preview-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.photo-preview-copy p { margin-block: 1rem 1.4rem; color: #f2ddde; }
.photo-pair {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.photo-pair img { display: block; width: 100%; min-width: 0; height: auto; object-fit: cover; border: 1px solid #b77a57; border-radius: 5rem 5rem .6rem .6rem; }
.photo-pair img:first-child { aspect-ratio: 4 / 5; }
.photo-pair img:last-child { aspect-ratio: 3 / 4; transform: translateY(9%); }

.gallery-section { padding-top: clamp(2.5rem, 6vw, 5.5rem); }
.gallery-heading { max-width: 48rem; margin-bottom: 2rem; }
.gallery-heading h1 { margin-top: 0; }
.gallery-heading em { color: var(--rust); }
.gallery-heading p { color: var(--muted); max-width: 44ch; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(8rem, 19vw, 15.5rem);
  gap: clamp(.5rem, 1.4vw, 1rem);
}
.photo-tile { display: block; min-width: 0; overflow: hidden; border-radius: .75rem; background: #e8d7c6; }
.photo-tile:first-child { grid-column: span 2; grid-row: span 2; border-radius: 40% 40% .75rem .75rem / 32% 32% .75rem .75rem; }
.photo-tile:nth-child(2), .photo-tile:nth-child(5), .photo-tile:last-child { grid-column: span 2; }
.photo-tile:nth-child(2) img { object-position: center 65%; }
.photo-tile img { height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .photo-tile img { transition: transform .3s ease; }
  .photo-tile:hover img { transform: scale(1.045); }
}
.photo-viewer {
  width: min(100% - 1rem, 66rem);
  max-height: 96dvh;
  padding: clamp(.75rem, 2vw, 1.5rem);
  border: 1px solid #b77a57;
  border-radius: 1rem;
  background: var(--plum);
  color: var(--cream);
}
.photo-viewer::backdrop { background: #170e17ed; }
.viewer-bar, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.photo-viewer figure { margin-block: .6rem; }
.viewer-image { width: 100%; height: min(65dvh, 42rem); object-fit: contain; touch-action: pan-y pinch-zoom; }
.photo-viewer figcaption { text-align: center; margin-top: .6rem; }
.photo-viewer button {
  background: transparent;
  color: var(--cream);
  border: 1px solid #e1ab78;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  min-height: 2.75rem;
  padding-inline: .85rem;
  cursor: pointer;
}
.photo-viewer button:hover { background: #573149; }

@media (max-width: 48rem) {
  .photo-preview-grid { grid-template-columns: 1fr; }
  .photo-pair { width: min(100%, 33rem); margin-inline: auto; }
}
@media (max-width: 36rem) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(8rem, 35vw, 13rem); }
  .photo-tile:nth-child(2), .photo-tile:nth-child(5), .photo-tile:last-child { grid-column: auto; }
}
