/* Gallery pages (/gallery and /gallery-image) — colours follow the membership page palette */

.gallery-hero {
    background: linear-gradient(135deg, #233242 0%, #1e3a52 55%, #358b8d 100%);
    color: #fff;
    padding: 56px 0 52px;
    text-align: center;
}

.gallery-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(122, 203, 205, 0.18);
    color: #7acbcd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-hero .gallery-title {
    margin: 14px 0 8px;
    color: #fff;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 600;
    text-align: center;
}

.gallery-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
}

.gallery-section {
    background: #f8fafc;
    padding: 56px 0 72px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #d4ecee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px -1px rgba(0, 0, 0, .06);
    transition: box-shadow .25s ease, transform .25s ease;
}

.gallery-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

/* Teal wash + zoom icon on hover/focus */
.gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 40px no-repeat,
        linear-gradient(180deg, rgba(30, 58, 82, 0) 0%, rgba(30, 58, 82, .55) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(30, 58, 82, .14);
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
    transform: scale(1.05);
}

.gallery-tile:hover::after,
.gallery-tile:focus-visible::after {
    opacity: 1;
}

.gallery-tile:focus-visible {
    outline: 3px solid #358b8d;
    outline-offset: 3px;
}

.gallery-empty {
    margin: 0;
    padding: 48px 16px;
    text-align: center;
    color: #45556c;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

@media (max-width: 575.98px) {
    .gallery-hero {
        padding: 40px 0 36px;
    }

    .gallery-section {
        padding: 28px 0 44px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-tile {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-tile,
    .gallery-tile img,
    .gallery-tile::after {
        transition: none;
    }

    .gallery-tile:hover,
    .gallery-tile:focus-visible {
        transform: none;
    }

    .gallery-tile:hover img,
    .gallery-tile:focus-visible img {
        transform: none;
    }
}
