/****************************
row1
****************************/
#archive-gallery .row1 {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

#archive-gallery .row1 .inner-container {
    width: 1300px;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    gap: 30px;
    align-items: center;
}

#archive-gallery .row1 .inner-container .title {
    font-size: 30px;
    font-family: var(--font-bold);
    font-weight: 900;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--main-color);
    color: white;
    border-radius: 15px;
}

#archive-gallery .row1 .inner-container .breadcrumb {
    font-size: 15px;
    font-family: var(--font-medium);
    font-weight: 500;
    color: var(--main-color);
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    border-radius: 15px;
    background-color: var(--acent-color);
}



/****************************
row2
****************************/
#archive-gallery .row2 {
    margin: 60px 0 150px 0;
    display: flex;
    justify-content: center;
    position: relative;

}

#archive-gallery .row2 .gallery-list {
    width: 1300px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 15px;
}

#archive-gallery .row2 .gallery-list .gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    width: calc(20% - 8px);
    height: auto;
    aspect-ratio: 1;
    transition: transform 0.3s ease-in-out;
}

#archive-gallery .row2 .gallery-list .gallery-item:hover img{
    transform: scale(1.3);    
}

#archive-gallery .row2 .gallery-list .gallery-item .caption {
    display: none;
}

#archive-gallery .row2 .gallery-list .gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}



.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    text-align: center;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.lightbox-img {
    width: 80%;
    height: auto;
    max-height: 95%;
    object-fit: contain;
}

.caption {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.306);
    backdrop-filter: blur(15px);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.caption.visible {
    opacity: 1;
    visibility: visible;
}

.caption h3,
.caption p {
    margin: 0;
    color: #fff;
}

.caption p {
    text-align: justify;;
    max-height: 200px;
    overflow-y: scroll;
    scrollbar-width: none;
}

.lightbox .close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    transform: translateY(-50%);
}

.lightbox .prev.visible,
.lightbox .next.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox .prev {
    right: 0;
}

.lightbox .next {
    left: 0;
}





/****************************
RESPONSIVE
****************************/
@media screen and (max-width: 770PX) {
    #archive-gallery .row1 .inner-container {
        width: 100%;
    }
    #archive-gallery .row2 .gallery-list {
        width: 100%;
    }
    #archive-gallery .row2 .gallery-list .gallery-item {
        width: calc(50% - 5px);
    }
}

@media(maximum-width: 460px) {
    #archive-gallery .row2 .gallery-list .gallery-item {
        width: 100%;
    }
    .lightbox .caption p{
        font-size: 12px;
    }
}