* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /*
    background:
    linear-gradient(
    135deg,
    #0f0f1a,
    #1a1025,
    #140d1d
    );
*/
    min-height: 100vh;

    color: #fff;

    overflow-x: hidden;

}

/* =========================
   GALLERY PAGE
========================= */

.gallery-page {

    width: 100%;

    max-width: 1400px;

    margin: auto;

    padding: 24px;

}

/* HEADER */

.gallery-header {

    text-align: center;

    margin-bottom: 40px;

}

.gallery-header h2 {

    font-size: 52px;

    font-weight: 700;

    margin-bottom: 12px;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}

.gallery-header p {

    color: #c8b6d8;

    font-size: 16px;

}

/* GRID */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;

}

/* CARD */

.gallery-card {

    position: relative;

    overflow: hidden;

    border-radius: 30px;

    cursor: pointer;

    background:
        rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 20px 50px rgba(255, 105, 180, 0.08);

    transition: .5s;

}

.gallery-card:hover {

    transform:
        translateY(-8px) scale(1.02);

    box-shadow:
        0 30px 70px rgba(255, 105, 180, 0.18);

}

/* IMAGE */

.gallery-card img {

    width: 100%;

    height: 420px;

    object-fit: cover;

    transition: .6s;

}

.gallery-card:hover img {

    transform: scale(1.08);

}

/* OVERLAY */

.gallery-overlay {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    padding: 24px;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0));

}

/* TAG */

.gallery-tag {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 30px;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 12px;

    box-shadow:
        0 10px 30px rgba(255, 105, 180, 0.25);

}

/* TITLE */

.gallery-overlay h3 {

    color: #fff;

    font-size: 26px;

    font-weight: 700;

}

/* PLAY ICON */

.play-icon {

    position: absolute;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 90px;

    height: 90px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(14px);

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 30px;

    border:
        2px solid rgba(255, 255, 255, 0.2);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25);

    animation: pulsePlay 2s infinite;

}

/* =========================
   POPUP
========================= */

.gallery-popup {

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.88);

    backdrop-filter: blur(14px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 9999;

    opacity: 0;

    visibility: hidden;

    transition: .4s;

}

.gallery-popup.active {

    opacity: 1;

    visibility: visible;

}

/* CONTENT */

.popup-content {

    width: 100%;

    max-width: 900px;

    max-height: 90vh;

    border-radius: 26px;

    overflow: hidden;

    position: relative;

    animation: popupZoom .4s ease;

}

.popup-content img {

    width: 100%;

    max-height: 90vh;

    object-fit: cover;

    border-radius: 26px;

}

.popup-content video {

    width: 100%;

    max-height: 90vh;

    border-radius: 26px;

    background: #000;

}

/* CLOSE */

.close-popup {

    position: absolute;

    top: 24px;

    right: 24px;

    width: 54px;

    height: 54px;

    border: none;

    border-radius: 18px;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    color: #fff;

    font-size: 22px;

    cursor: pointer;

    z-index: 20;

    box-shadow:
        0 12px 35px rgba(255, 105, 180, 0.25);

    transition: .4s;

}

.close-popup:hover {

    transform:
        rotate(90deg) scale(1.08);

}

/* ANIMATION */

@keyframes popupZoom {

    from {

        opacity: 0;

        transform: scale(.8);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}

@keyframes pulsePlay {

    0% {

        transform:
            translate(-50%, -50%) scale(1);

    }

    50% {

        transform:
            translate(-50%, -50%) scale(1.08);

    }

    100% {

        transform:
            translate(-50%, -50%) scale(1);

    }

}

/* TABLET */

@media(max-width:992px) {

    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}

/* MOBILE */

@media(max-width:576px) {

    .gallery-page {

        padding: 16px;

    }

    .gallery-header {

        margin-bottom: 26px;

    }

    .gallery-header h2 {

        font-size: 34px;

    }

    .gallery-header p {

        font-size: 13px;

    }

    .gallery-grid {

        grid-template-columns: 1fr;

        gap: 16px;

    }

    .gallery-card {

        border-radius: 22px;

    }

    .gallery-card img {

        height: 320px;

    }

    .gallery-overlay {

        padding: 18px;

    }

    .gallery-overlay h3 {

        font-size: 20px;

    }

    .popup-content {

        border-radius: 18px;

    }

    .popup-content img,
    .popup-content video {

        border-radius: 18px;

    }

    .close-popup {

        width: 46px;

        height: 46px;

        border-radius: 14px;

        font-size: 18px;

        top: 16px;

        right: 16px;

    }

    .play-icon {

        width: 70px;

        height: 70px;

        font-size: 24px;

    }

}