/* File: gallery.css - Gaya khusus untuk Galeri */

.gallery-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1em;
    color: var(--color-text);
}

.full-moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 300px; /* Sedikit lebih besar dari di homepage */
    position: relative; 
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease; 
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Efek Overlay Modern (Hampir sama dengan yang sebelumnya, tapi lebih sederhana untuk galeri penuh) */
.moment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 90, 116, 0.7); /* --color-dark opacity */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.gallery-item:hover .moment-overlay {
    opacity: 1;
}

.moment-overlay h5 {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.2em;
    margin: 0;
}

.moment-overlay .icon-zoom {
    font-size: 1.5em;
    color: var(--color-secondary); 
    transition: color 0.2s;
}

/* ---------------------------------
   LIGHTBOX / MODAL GAMBAR
   --------------------------------- */
#lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 300; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(8px);
}

#lightbox-image {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    height: auto;
    animation-name: zoom;
    animation-duration: 0.4s;
}

#lightbox-caption {
    margin: 10px auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 18px;
}

#lightbox-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    #lightbox-image {
        width: 100%;
    }
}
