/* Gallery Item Styling with Overlay */
.galeri-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.galeri-item img {
    transition: transform 0.3s ease;
}

.galeri-item:hover img {
    transform: scale(1.1);
}

.galeri-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeri-item:hover .galeri-overlay {
    transform: translateY(0);
}

.galeri-overlay h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.galeri-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================ */
/* LIGHTBOX MODAL */
/* ============================================ */

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    margin-top: 15px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.lightbox-caption h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #fff;
}

.lightbox-caption p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-image {
        max-height: calc(100vh - 250px);
    }

    .lightbox-caption {
        padding: 15px 20px;
        margin-top: 10px;
    }

    .lightbox-caption h3 {
        font-size: 1.2rem;
    }

    .lightbox-caption p {
        font-size: 0.9rem;
    }

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

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        top: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
}
