body {
    margin-top: 6%;
}

.gallery-container {
    max-width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(6, 1);
    /* grid-auto-rows: 100px 300px; */
}

.gallery-image {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    object-fit: cover;
}

.img-box {
    box-sizing: content-box;
    margin: 0.6%;
    width: calc(100% / 5 - (0.7%*2));
    aspect-ratio: 4 / 2.5;
    overflow: hidden;
    display: inline-block;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    background-color: var(--shadowColor);
}


.gallery-image img {
    object-position: 50% 50%;
    transform: scale(1.0);
    transition: transform 0.4s ease;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.gallery-image video:fullscreen {
    object-fit: contain;
    /* Shows full video with bars if needed */
}


.img-box:hover img {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 10%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 0, 39, 0.7);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    height: 80vh;
    position: absolute;
    top: 10vh;
    right: 10%;
    /* border: 1px solid var(--shadowColor); */
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--textColor);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    text-align: center;
    color: var(--textColor);
    padding: 10px;
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Date Bar */
.date-bar {
    padding: 10px 0px 0px 20px;
}




.load-more-container {
    text-align: center;
    margin: 20px 0;
}

#loadMoreBtn {
    background-color: #007bff;
    border: none;
    color: var(--textColor);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

#loadMoreBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 
---------------------------------------------------------------------------------
------------------------------Mobile Responsiveness------------------------------
---------------------------------------------------------------------------------
*/
@media (max-width: 1000px) {
    .img-box {
        width: calc(100% / 4 - (0.7%*2));
    }
}

@media (max-width: 700px) {
    .img-box {
        width: calc(100% / 3 - (0.7%*2));
    }
}

/* @media (max-width: 500px) {
    .img-box {
        width: calc(100% / 1 - (0.7%*2));
    }
} */