/* Black Tie Limousine MTL — SEO Photo Gallery */
.gallery-page .hero {
    background-image: url('./assets/gmc.jpg');
    background-position: center;
    background-size: cover;
    min-height: 46vh;
}

.gallery-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}

.gallery-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 32px;
}

.gallery-intro h2 {
    font-size: 1.9rem;
    color: #111;
    margin: 0 0 12px;
}

.gallery-intro p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 32px;
}

.gallery-filter-btn {
    background: #fff;
    color: #111;
    border: 1.5px solid #111;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn:focus-visible {
    background: #111;
    color: #f1c40f;
    border-color: #111;
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.gallery-filter-btn.is-active {
    background: #111;
    color: #f1c40f;
    border-color: #d4af37;
}

.gallery-count {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    margin: 0 0 24px;
}

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

.gallery-card {
    margin: 0;
    background: #fff;
    border: 1px solid #e2dfd7;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-card[hidden] {
    display: none;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: #d4af37;
}

.gallery-card__trigger {
    display: block;
    padding: 0;
    border: 0;
    background: #111;
    cursor: zoom-in;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-card__trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__trigger img {
    transform: scale(1.03);
}

.gallery-card figcaption {
    padding: 12px 14px 14px;
    font-size: 0.92rem;
    color: #222;
    line-height: 1.45;
    border-top: 2px solid #f1c40f;
}

.gallery-card__cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a6d0b;
    margin-bottom: 4px;
}

.gallery-card__title {
    display: block;
    font-weight: 600;
    color: #111;
}

.gallery-cta {
    margin-top: 48px;
    background: #111;
    color: #fff;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
}

.gallery-cta h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 1.75rem;
}

.gallery-cta p {
    color: #e6e6e6;
    max-width: 640px;
    margin: 0 auto 22px;
    line-height: 1.65;
}

/* Accessible Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    width: 100%;
    text-align: center;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 2px solid #d4af37;
    background: #000;
}

.gallery-lightbox__caption {
    color: #f5f5f5;
    margin: 14px auto 0;
    max-width: 760px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: fixed;
    z-index: 2010;
    background: rgba(17, 17, 17, 0.9);
    color: #f1c40f;
    border: 1.5px solid #d4af37;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.gallery-lightbox__close { top: 18px; right: 18px; }
.gallery-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
    background: #d4af37;
    color: #111;
}

@media (max-width: 600px) {
    .gallery-shell { padding: 28px 14px 48px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .gallery-lightbox__prev { left: 8px; }
    .gallery-lightbox__next { right: 8px; }
}
