/* Couple site: photo gallery. Tokens from theme.css. */
.gallery-section { max-width: 1100px; margin: 0 auto; }
.gallery-header .lead { font-family: var(--t-display); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem); color: var(--t-ink); line-height: 1.5; max-width: 720px; margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; }
.gallery-grid > .gallery-item-container { width: auto; max-width: none; padding: 0; margin: 0 !important; flex: none; }
.gallery-item { position: relative; border-radius: var(--t-radius); overflow: hidden; background: var(--t-surface); border: 1px solid var(--t-border); box-shadow: var(--t-shadow); aspect-ratio: 1 / 1; }
.gallery-item img.gallery-thumbnail { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .5s ease; }
.gallery-item:hover img.gallery-thumbnail { transform: scale(1.04); }
.gallery-grid > .gallery-item-container:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.delete-gallery-photo { border-radius: 50%; width: 36px; height: 36px; padding: 0; display: none; place-items: center; }
body.edit-mode .delete-gallery-photo { display: grid !important; }
.gallery-edit-controls .btn-primary { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-accent-ink); border-radius: 999px; }
#imageModal .modal-content { background: #111; border: 0; }
#imageModal #modalImage { background: #111; }
#imageModal .btn-dark { background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; margin: 0 12px; }
#imageModal .btn-dark span { font-size: 1.4rem !important; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gallery-grid > .gallery-item-container:nth-child(6n + 1) { grid-column: span 2; grid-row: span 1; aspect-ratio: auto; } .gallery-grid > .gallery-item-container:nth-child(6n + 1) .gallery-item { aspect-ratio: 16 / 10; } }
