.gallery-page {
    min-height: 100vh;
    background: #080b13;
    color: #fff;
}

.gallery-banner {
    position: relative;
    display: flex;
    min-height: 390px;
    align-items: center;
    justify-content: center;
    background: url("../img/banner3.png") no-repeat center center / cover;
}

.gallery-banner::before {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    content: "";
}

.gallery-page .default-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: transparent;
}

.gallery-banner-content {
    position: relative;
    z-index: 1;
    width: calc(100% - 48px);
    max-width: 1330px;
    padding-top: 40px;
    text-align: center;
}

.gallery-banner-content h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-banner-content p {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.gallery-main {
    width: calc(100% - 48px);
    max-width: 1330px;
    margin: 0 auto;
    padding: 42px 0 64px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 8px;
    gap: 10px;
}

.gallery-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.gallery-photo-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-photo-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(0, 0, 0, 0.9);
}

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

.gallery-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 12px;
    right: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 991px) {
    .gallery-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-banner {
        min-height: 300px;
    }

    .gallery-banner-content {
        width: calc(100% - 24px);
    }

    .gallery-main {
        width: calc(100% - 24px);
    }

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