﻿/* Gallery typography and spacing follow the minimalist About page. */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gallery-tabs button { min-height: 44px; padding: 10px 16px; border: 1px solid #d6ded3; border-radius: 8px; background: #fffdf7; color: #294736; font: inherit; font-size: .8rem; cursor: pointer; }
.gallery-tabs button[aria-selected="true"] { background: #1f6b4f; color: white; border-color: #1f6b4f; }
.gallery-tabs button:hover { border-color: #1f6b4f; }
.gallery-content [hidden] { display: none !important; }
.about-minimal .gallery-category-title { margin-bottom: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 22px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-image-button { width: 100%; display: block; padding: 0; border: 1px solid #d6ded3; border-radius: 8px; background: #fffdf7; overflow: hidden; cursor: zoom-in; }
.gallery-image-button img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery-item h3 { margin: 12px 0 0; font-size: .92rem; line-height: 1.6; font-weight: 500; color: #294736; overflow-wrap: anywhere; }
.gallery-item p { margin: 6px 0 0; color: #53645a; font-size: .8rem; line-height: 1.85; }
.gallery-legal-link { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid #d6ded3; font-size: .8rem; color: #53645a; line-height: 1.8; }
.gallery-legal-link a { color: #1f6b4f; text-decoration: underline; text-underline-offset: 3px; }
.gallery-preview { width: min(960px,calc(100% - 32px)); max-height: 90vh; max-height: 90dvh; padding: 0; border: 1px solid #d6ded3; border-radius: 8px; background: #fffdf7; color: #294736; }
.gallery-preview::backdrop { background: rgba(16,28,23,.76); }
.gallery-preview__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #d6ded3; }
.gallery-preview__header h2 { margin: 0; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.gallery-preview__header button { flex-shrink: 0; min-height: 44px; border: 0; border-radius: 8px; background: #e6edde; color: #1f6b4f; padding: 8px 12px; font: inherit; font-size: .8rem; cursor: pointer; }
.gallery-preview__header button:hover { background: #292c31; color: #a7d94b; }
.gallery-preview > img { display: block; width: calc(100% - 36px); height: auto; margin: 18px; }
.gallery-preview > p { margin: 0 18px 18px; color: #53645a; font-size: .85rem; line-height: 1.8; }
html.gallery-preview-open { overflow: hidden; }
@media (max-width: 820px) {
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 12px; }
  .gallery-tabs button { flex: 0 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
}
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 4 / 3; padding: 20px; border: 1px dashed #bdcdbb; border-radius: 8px; background: #eef2e8; color: #617762; }
.gallery-placeholder svg { width: 36px; height: 36px; }
.gallery-placeholder span { font-size: .8rem; font-weight: 400; }
.gallery-item--empty h3 { color: #617762; }
