.aw-gallery {
    --gal-radius: 14px;
    margin: 0 auto;
}
.aw-gallery__title {
    text-align: center;
}
.aw-gallery__lead {
    text-align: center;
    color: var(--ink-soft, #5A6B75);
    max-width: 46ch;
    margin: 0 auto 1.75rem;
}
.aw-gallery__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .9rem;
}
.aw-gallery__item {
    margin: 0;
}
.aw-gallery__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border, #E5E2DC);
    border-radius: var(--gal-radius);
    background: var(--surface, #fff);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
}
.aw-gallery__btn img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}
.aw-gallery__btn:hover,
.aw-gallery__btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 94, 133, .16);
}
.aw-gallery__btn:focus-visible {
    outline: 3px solid var(--brand, #008BC5);
    outline-offset: 3px;
}

/* ---------- Lightbox ---------- */
.aw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 38, 52, .92);
    padding: clamp(1rem, 4vw, 3rem);
}
.aw-lightbox[hidden] { display: none; }
.aw-lightbox__img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: var(--gal-radius);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.aw-lightbox__caption {
    position: absolute;
    left: 50%;
    bottom: clamp(.75rem, 3vw, 1.75rem);
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .9);
    font-size: .95rem;
    text-align: center;
    max-width: 60ch;
    margin: 0;
}
.aw-lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.aw-lightbox button:hover,
.aw-lightbox button:focus-visible { background: rgba(255, 255, 255, .28); }
.aw-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.aw-lightbox__close { top: clamp(.75rem, 3vw, 1.5rem); right: clamp(.75rem, 3vw, 1.5rem); }
.aw-lightbox__prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.aw-lightbox__next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
    .aw-gallery__btn, .aw-lightbox button { transition: none; }
    .aw-gallery__btn:hover, .aw-gallery__btn:focus-visible { transform: none; }
}
