/* Album Grid & Album Thumbnail Styles */
.gallery_albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.gallery_album {
    background: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}
.gallery_album::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}
.gallery_album:hover {
    transform: scale(1.03);
}
.gallery_album__title {
    color: #fff;
    font-weight: bold;
    padding: 10px;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    position: relative;
}
/* Fullscreen Modal Styles */
.gallery_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}
.gallery_modal--active {
    display: flex;
}
.gallery_modal__content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
}
/* Slide container */
.gallery_slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.5s ease;
}
.gallery_slide__image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
}
/* Navigation buttons */
.gallery_modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 1);
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    z-index: 1050;
}
.gallery_modal__nav--prev {
    left: 1em;
}
.gallery_modal__nav--next {
    right: 1em;
}
/* Close Button */
.gallery_modal__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1050;
}
/* Counter */
.gallery_modal__counter {
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 1);
    width: 6em;
    padding: 1em;
    text-align: center;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    z-index: 1050;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery_album {
        width: 150px;
        height: 100px;
    }
    .gallery_modal__nav {
        padding: 1em 1.5em;
        font-size: 16px;
        top:80%;
    }
}