/* Photo grid + lightbox, from the site stylesheet (src/styles.css, 10.11.2026). */
/* gallery page: photo grid (masonry columns, natural aspect) + lightbox (main.js) */
.photo-grid { columns: 3 260px; column-gap: 14px; }
.photo { display: block; margin: 0 0 14px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); box-shadow: 0 10px 26px -18px rgba(20,42,82,.45); }
.photo img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.photo:hover img, .photo:focus-visible img { transform: scale(1.03); }
@media (max-width: 640px) { .photo-grid { columns: 2; column-gap: 8px; } .photo { margin-bottom: 8px; border-radius: 12px; } }
.lightbox { position: fixed; inset: 0; z-index: 100; margin: 0; display: grid; place-items: center; padding: 56px 12px; background: rgba(8,18,38,.92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(calc(100vw - 24px), 1200px); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: 400 28px/1 sans-serif; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.3); }
.lightbox .lb-close { top: 10px; inset-inline-end: 12px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; translate: 0 -50%; }
.lightbox .lb-prev { inset-inline-start: 12px; }
.lightbox .lb-next { inset-inline-end: 12px; }
.lightbox figcaption { position: absolute; bottom: 14px; inset-inline: 16px; text-align: center; color: #e6efff; font-size: 15px; }
/* service pages: a row of 4 square photo tiles under the video strip */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 22px; }
.photo-strip .photo { margin: 0; aspect-ratio: 1; }
.photo-strip .photo img { height: 100%; object-fit: cover; }
.works + .photo-strip { margin-top: 20px; }
.section.dark .photo { background: rgba(255,255,255,.06); }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr 1fr; gap: 8px; } }
