/* Album Gallery Styles */

/* Grid Hover Effects */
.gallery-item {
    display: block;
    position: relative;
}

.gallery-thumb {
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 45, 86, 0.4);
    /* Primary Blue tint */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Lightbox Styles */
.aga-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aga-lightbox.active {
    display: flex;
    opacity: 1;
}

.aga-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.aga-lightbox-content {
    position: relative;
    z-index: 10001;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass to overlay where allow */
}

.aga-image-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    pointer-events: auto;
}

.aga-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
}

/* Controls */
.aga-close-btn,
.aga-prev-btn,
.aga-next-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    pointer-events: auto;
}

.aga-close-btn:hover,
.aga-prev-btn:hover,
.aga-next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.aga-close-btn {
    top: 20px;
    right: 20px;
}

.aga-prev-btn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.aga-next-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Caption */
.aga-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .aga-prev-btn,
    .aga-next-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.3);
        /* Darker on mobile for vis */
    }

    .aga-close-btn {
        top: 10px;
        right: 10px;
    }
}