.gallery-page {
    padding-top: 72px;
}

.gallery-hero {
    position: relative;
    min-height: 58vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-hero img {
    width: 100%;
    height: 58vh;
    object-fit: cover;
}

.gallery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0, 0, 0, 0.78) 22%, rgba(0, 0, 0, 0.32) 72%);
}

.gallery-hero-content {
    position: absolute;
    left: 6vw;
    bottom: 7vh;
    z-index: 2;
    max-width: 620px;
}

.gallery-hero-content h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    margin-bottom: 14px;
}

.gallery-hero-content p {
    color: #dedede;
    max-width: 56ch;
}

.gallery-section {
    width: min(1200px, 92%);
    margin: 56px auto;
}

.galeri {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.galeri img,
.galeri video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: block;
    background: #080808;
}

.galeri img:hover,
.galeri video:hover {
    transform: scale(1.02);
    border-color: rgba(212, 0, 0, 0.75);
}

.galeri video {
    outline: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1400;
    padding: 16px;
}

.lightbox.open {
    display: flex;
}

#lightbox-img,
#lightbox video {
    width: min(1100px, 95vw);
    max-height: 88vh;
    object-fit: contain;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 1024px) {
    .galeri {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .gallery-hero,
    .gallery-hero img {
        min-height: 48vh;
        height: 48vh;
    }

    .gallery-hero-content {
        left: 20px;
        right: 20px;
    }

    .galeri {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .galeri {
        grid-template-columns: 1fr;
    }
}
