/* Album cards on gallery.php */
.album-thumb {
    position: relative;
    overflow: hidden;
    border-top: 12px;
    transition: transform 0.3s;
}

    .album-thumb img {
        width: 100%;
        height: auto;
        display: block;
        border-top: 12px;
    }

    .album-thumb:hover {
        transform: scale(1.03);
    }

.album-year {
    position: absolute;
    bottom: 8px;
    left: 12px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: bold;
}

/* Album viewer layout */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    flex: 0 1 auto;
}

.gallery-thumb {
    height: 180px !important;
    width: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;

}

    .gallery-thumb:hover {
        transform: scale(1.05);
    }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-image {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.lightbox-prev {
    left: 200px;
}

.lightbox-next {
    right: 200px;
}

.back-arrow {
    font-size: 1rem;
    color: var(--primary-teal);
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.2s;
}

    .back-arrow:hover {
        color: var(--primary-teal);
        text-decoration: underline;
        font-weight: bold;
    }

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .gallery-thumb {
        height: 140px;
    }

    .lightbox-prev, .lightbox-next {
        font-size: 40px;
        left: 10px;
        right: 10px;
    }

    .lightbox-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
}

.album-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

    .album-card:hover {
        transform: translateY(-4px);
    }

.album-thumb img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    display: block;
}

.album-caption {
    background: linear-gradient(60deg, #007f7f, #cae6e6);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    font-size: 1.2rem;
    text-align: left;
}

