/* ===========================
   GALERI (LAYOUT + STYLE)
=========================== */

.galeri {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    background-image: url(/src/assets/images/bg-2.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.judul-galeri {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-family: "Alike", serif;
    color: #333;
}

/* BATAS LEBAR GALERI */
.polaroidd-gallery {
    max-width: 700px;
    margin: 0 auto;
}

/* GRID: selalu 2 kolom (desktop & HP) */
.portrait-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    align-items: start;
}


/* ===========================
   POLAROID CARD
=========================== */

.polaroidd {
    background: #fafafa;
    padding: 12px 12px 60px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.polaroidd img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}


/* Random rotation effect */
.rotate-left {
    transform: rotate(-4deg);
}

.rotate-right {
    transform: rotate(4deg);
}

.polaroidd:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ===========================
   ZOOM MODE
=========================== */

body.zoom-blur .galeri-wrapper {
    filter: blur(6px);
    transition: 0.3s ease;
}

/* Overlay fullscreen */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.zoom-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.zoom-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    animation: zoomIn 0.3s ease forwards;
}

/* Next & Prev buttons */
.zoom-overlay button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 40px;
    padding: 5px 15px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: 0.2s ease;
}

.zoom-overlay button:hover {
    background: rgba(255, 255, 255, 1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Animasi overlay */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animasi zoom-in */
@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button show more */
.show-more-btn {
    margin: 30px auto 0;
    display: block;
    background: #333;
    color: white;
    padding: 12px 26px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.show-more-btn:hover {
    background: #555;
}

/* Default (Laptop) */
.polaroid-text {
    position: absolute;
    bottom: 12px;
    right: 20px;
    font-family: "Allison", cursive;
    font-size: 50px;
    color: #333;
    pointer-events: none;
    z-index: 10;
}

/* HP (max-width 600px) */
@media (max-width: 600px) {

    .polaroidd {
        padding: 12px 12px 50px;
    }

    .polaroid-text {
        font-size: 27px;
        bottom: 15px;
        right: 10px;
    }
}