.photo-thumbnails {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: clamp(10px, 1.6vw, 22px); margin-top: 20px;
}
.photo-thumbnail { display: block; border-radius: 14px; overflow: hidden; background: rgb(255 255 255 / .36); cursor: zoom-in; }
.photo-thumbnail img { width: 100%; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 600px) { .photo-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.photo-lightbox {
  position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; border: 0; background: transparent;
}
.photo-lightbox[open] { display: grid; place-items: center; cursor: zoom-out; }
.photo-lightbox::backdrop {
  background: rgb(19 19 19 / .65);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.photo-lightbox img {
  display: block; max-width: calc(100% - 32px); max-height: calc(100dvh - 112px);
  width: auto; height: auto; object-fit: contain; cursor: default; box-shadow: 0 12px 60px rgb(0 0 0 / .3);
}
.photo-lightbox-close {
  position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
  width: 44px; height: 44px; border-radius: 50%; color: #ffffff; font-size: 28px; line-height: 1;
  background: rgb(25 25 25 / .85); border: 1px solid rgb(255 255 255 / .5);
}
html:has(.photo-lightbox[open]) { overflow: hidden; }
