body {
    background:
        radial-gradient(1200px 420px at 12% 8%, rgba(214, 241, 247, 0.8) 0%, rgba(214, 241, 247, 0) 60%),
        radial-gradient(1000px 380px at 84% 18%, rgba(235, 236, 255, 0.6) 0%, rgba(235, 236, 255, 0) 64%),
        #f1ede8;
}

.gallery-page {
    padding: 120px 24px 80px;
}

.gallery-hero {
    max-width: 1200px;
    margin: 0 auto 20px;
}

.gallery-hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 600;
    color: #1a1a1a;
}

.gallery-panel {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(166, 212, 226, 0.9) 0%, rgba(189, 223, 236, 0.92) 100%);
    border-radius: 22px;
    padding: 30px 28px 70px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 16px 36px rgba(27, 38, 44, 0.2);
}

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

.gallery-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 251, 255, 0.78) 100%);
    border-radius: 18px;
    padding: 12px 12px 14px;
    box-shadow: 0 10px 18px rgba(25, 32, 36, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 168, 202, 0.45);
    box-shadow: 0 16px 28px rgba(24, 34, 41, 0.18);
}

.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    cursor: zoom-in;
}

.gallery-main::after {
    content: "Klik untuk lihat";
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: rgba(12, 24, 30, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    padding: 5px 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.gallery-card:hover .gallery-main::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-main img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.25s ease;
}

.gallery-card:hover .gallery-main img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

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

.gallery-thumbs img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.gallery-thumbs img:hover {
    transform: translateY(-2px) scale(1.04);
    filter: saturate(1.08);
    box-shadow: 0 8px 14px rgba(18, 31, 39, 0.24);
}

.gallery-card--like .gallery-main img {
    height: 190px;
}

.gallery-like {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    margin-top: 8px;
}

.gallery-like i {
    font-size: 18px;
}

.gallery-bottom {
    margin-top: 24px;
    text-align: center;
    color: #1f2a2f;
    font-size: 15px;
    line-height: 1.4;
}

.gallery-camera {
    position: absolute;
    right: 14px;
    bottom: -24px;
    width: min(210px, 30vw);
    transform: rotate(-12deg);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25));
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 26px;
    background: rgba(10, 17, 22, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

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

.gallery-lightbox-figure {
    margin: 0;
    width: min(100%, 980px);
    max-height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    padding: 12px;
}

.gallery-lightbox-figure img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 12px;
    background: rgba(10, 17, 22, 0.56);
}

.gallery-lightbox-figure figcaption {
    margin-top: 10px;
    color: rgba(248, 251, 253, 0.92);
    text-align: center;
    font-size: 15px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .gallery-page {
        padding: 112px 18px 74px;
    }

    .gallery-hero {
        margin-bottom: 14px;
    }

    .gallery-hero h1 {
        text-align: center;
        font-size: clamp(32px, 6.8vw, 46px);
    }

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

    .gallery-panel {
        padding: 20px 16px 76px;
    }
}

@media (max-width: 700px) {
    .gallery-page {
        padding: 110px 16px 70px;
    }

    .gallery-panel {
        padding: 20px 16px 90px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-main img {
        height: 170px;
    }

    .gallery-thumbs img {
        height: 78px;
    }

    .gallery-card--like .gallery-main img {
        height: 210px;
    }

    .gallery-camera {
        right: 10px;
        bottom: -30px;
        width: min(190px, 46vw);
    }

    .gallery-lightbox {
        padding: 14px;
    }

    .gallery-lightbox-figure {
        border-radius: 14px;
        padding: 8px;
    }

    .gallery-lightbox-figure img {
        max-height: calc(100vh - 140px);
    }
}

@media (max-width: 520px) {
    .gallery-page {
        padding: 102px 10px 64px;
    }

    .gallery-hero h1 {
        font-size: clamp(28px, 8.5vw, 36px);
    }

    .gallery-panel {
        border-radius: 16px;
        padding: 14px 10px 72px;
    }

    .gallery-card {
        border-radius: 14px;
        padding: 8px 8px 10px;
    }

    .gallery-main {
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .gallery-main img {
        height: 160px;
    }

    .gallery-thumbs {
        gap: 6px;
    }

    .gallery-thumbs img {
        height: 66px;
        border-radius: 8px;
    }

    .gallery-bottom {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.45;
    }

    .gallery-camera {
        width: min(160px, 44vw);
        bottom: -24px;
    }

    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .gallery-lightbox-figure figcaption {
        font-size: 13px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .gallery-card:hover,
    .gallery-card:hover .gallery-main img,
    .gallery-thumbs img:hover {
        transform: none;
        box-shadow: none;
        filter: none;
    }

    .gallery-main::after {
        opacity: 1;
        transform: translateY(0);
        font-size: 10px;
        padding: 4px 9px;
    }
}
