.photosPage {
  display: grid;
  gap: 32px;
}

.photosHero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  background: var(--wit);
  border: 1px solid var(--JaBuvo2);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.photosHeroText {
  padding: 48px 40px;
  align-self: center;
}

.photosHeroText h1 {
  color: var(--JaBuvo1);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.photosHeroText p:not(.eyebrow) {
  max-width: 720px;
  color: var(--tekstZacht);
  font-size: 1.08rem;
  line-height: 1.8;
}

.photosHeroImage {
  min-height: 320px;
  overflow: hidden;
}

.photosHeroImage img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.95);
}

.photosFolderNav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: var(--wit);
  border: 1px solid var(--JaBuvo2);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.photosFolderNav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 999px;
  color: var(--JaBuvo1) !important;
  font-weight: 700;
  transition: 0.2s ease;
}

.photosFolderNav a:hover,
.photosFolderNav a.isActive {
  background: var(--JaBuvo2);
  border-color: var(--JaBuvo2);
  color: var(--wit) !important;
  text-shadow: none;
}

.photosInfoCard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--wit);
  border: 1px solid var(--JaBuvo2);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.photosInfoCard h2 {
  color: var(--JaBuvo1);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.photosInfoCard p:not(.eyebrow) {
  color: var(--tekstZacht);
  line-height: 1.8;
}

.photosGroupedOverview {
  display: grid;
  gap: 34px;
  width: 100%;
}

.photosYearGroup {
  display: grid;
  gap: 20px;
  width: 100%;
}

.photosYearBar {
  width: 100%;
  padding: 14px 18px;
  background: var(--JaBuvo2);
  border-radius: 14px;
  color: var(--wit);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.photosYearBar span {
  display: block;
  color: var(--wit);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.1;
  font-weight: 900;
}

/* Masonry-layout */
.photosMasonry {
  width: 100%;
  column-count: 3;
  column-gap: 22px;
}

.photoCard {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--wit);
  border: 1px solid var(--JaBuvo2);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.photoImageButton {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(11, 31, 58, 0.06);
  cursor: pointer;
  text-align: left;
}

.photoImageButton img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.photoImageButton span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--JaBuvo1);
  font-size: 0.85rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.photoImageButton:hover img,
.photoImageButton:focus-visible img {
  transform: scale(1.03);
  filter: brightness(0.86);
}

.photoImageButton:hover span,
.photoImageButton:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay */
.photoViewerOverlay,
.photoRequestOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 72px 88px;
  background: rgba(11, 31, 58, 0.72);
}

.photoRequestOverlay {
  z-index: 10000;
  padding: 20px;
}

.photoViewerOverlay[hidden],
.photoRequestOverlay[hidden] {
  display: none;
}

.photoModalOpen {
  overflow: hidden;
}

.photoViewer {
  position: relative;
  width: 100%;
  height: calc(100dvh - 144px);
  max-width: 1180px;
  max-height: calc(100dvh - 144px);
  display: grid;
  place-items: center;
}

.photoViewerFigure {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 144px);
  display: grid;
  place-items: center;
  margin: 0;
}

.photoViewerFigure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 144px);
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: var(--wit);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.photoViewerClose,
.photoViewerNav,
.photoViewerRemove,
.photoRequestClose {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: var(--JaBuvo1);
  cursor: pointer;
  transition: 0.2s ease;
}

.photoViewerClose,
.photoRequestClose {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10002;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.photoViewerClose:hover,
.photoViewerNav:hover,
.photoViewerRemove:hover,
.photoRequestClose:hover {
  transform: translateY(-2px);
  text-shadow: none;
}

.photoViewerNav {
  position: fixed;
  top: 50%;
  z-index: 10002;
  width: 54px;
  height: 64px;
  border-radius: 999px;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.photoViewerNav:hover {
  transform: translateY(calc(-50% - 2px));
}

.photoViewerPrev {
  left: 28px;
}

.photoViewerNext {
  right: 28px;
}

.photoViewerRemove {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 10002;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

/* Verwijderverzoek modal */
.photoRequestModal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--wit);
  border: 1px solid var(--JaBuvo2);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.photoRequestClose {
  position: absolute;
  top: 14px;
  right: 14px;
  border-color: rgba(11, 31, 58, 0.16);
  box-shadow: none;
}

.photoRequestModal h2 {
  color: var(--JaBuvo1);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.photoRequestIntro {
  color: var(--tekstZacht);
  line-height: 1.75;
  margin-bottom: 22px;
}

#photoRequestForm {
  display: grid;
  gap: 16px;
}

#photoRequestForm label {
  display: block;
  margin-bottom: 6px;
  color: var(--JaBuvo1);
  font-weight: 800;
}

#photoRequestForm input,
#photoRequestForm textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--JaBuvo2);
  border-radius: 10px;
  color: var(--JaBuvo1);
  font: inherit;
  box-sizing: border-box;
}

#photoRequestForm textarea {
  min-height: 130px;
  resize: vertical;
}

#photoRequestSubmit,
.decisionButton {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid var(--JaBuvo2);
  border-radius: 10px;
  background: var(--JaBuvo2);
  color: var(--wit) !important;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

#photoRequestSubmit:hover,
.decisionButton:hover {
  transform: translateY(-2px);
  text-shadow: none;
}

#photoRequestSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.photoRequestStatus {
  min-height: 20px;
  color: var(--tekstZacht);
  font-size: 0.95rem;
  line-height: 1.6;
}

.photoRequestStatus.success {
  color: #1f7a3a;
}

.photoRequestStatus.error {
  color: #b42318;
}

/* Decision page */
.decisionCard {
  max-width: 720px;
  margin: 0 auto;
  background: var(--wit);
  border: 1px solid var(--JaBuvo2);
  border-radius: 16px;
  padding: 38px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.decisionCard h1 {
  color: var(--JaBuvo1);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.decisionCard p:not(.eyebrow) {
  color: var(--tekstZacht);
  line-height: 1.8;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .photosHero {
    grid-template-columns: 1fr;
  }

  .photosHeroText {
    padding: 40px 24px;
  }

  .photosHeroImage,
  .photosHeroImage img {
    min-height: 260px;
  }

  .photosInfoCard {
    grid-template-columns: 1fr;
  }

  .photosMasonry {
    column-count: 2;
    column-gap: 16px;
  }

  .photoCard {
    margin-bottom: 16px;
  }

  .photoViewerOverlay {
    padding: 70px 18px 86px;
  }

  .photoViewer {
    height: calc(100dvh - 156px);
    max-height: calc(100dvh - 156px);
  }

  .photoViewerFigure {
    max-height: calc(100dvh - 156px);
  }

  .photoViewerFigure img {
    max-height: calc(100dvh - 156px);
    border-radius: 14px;
  }

  .photoViewerClose {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .photoViewerNav {
    width: 44px;
    height: 54px;
    font-size: 34px;
  }

  .photoViewerPrev {
    left: 10px;
  }

  .photoViewerNext {
    right: 10px;
  }

  .photoViewerRemove {
    left: 18px;
    right: 18px;
    bottom: 18px;
    justify-content: center;
    width: auto;
  }
}

@media (max-width: 700px) {
  .photosMasonry {
    column-count: 2;
    column-gap: 12px;
  }

  .photoCard {
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .photosInfoCard,
  .photoRequestModal,
  .decisionCard {
    padding: 24px 20px;
  }

  .photoImageButton span {
    opacity: 1;
    transform: none;
    font-size: 0.78rem;
  }

  .photoRequestOverlay {
    padding: 12px;
  }
}

@media (max-width: 460px) {
  .photosMasonry {
    column-count: 1;
  }
}
