/********* THE GRID *********/

/* to avoid scrollbar-related margin appear at the page loading */
@media (min-width: 1024px) { /* Adjust the min-width value as needed */
    body {
        width: calc(100vw - 16px); /* Subtract scrollbar width */
        overflow-y: auto;
    }

    header {
        width: calc(100vw - 16px) !important; /* Subtract scrollbar width */
    }
}

/* general style for the gallery block */
.gallery {
    margin-top: 100px; /* Matches the height of the menu */
}

/* general styles for the image */
.gallery a img {
    transition: transform 0.3s ease, filter 0.3s ease !important; /* Smooth transition for image effects */
    transform: scale(1); /* Default scale */
    filter: opacity(1);
}

/* hover effect for the image */
.gallery a:hover img {
    transform: scale(1.02) !important; /* Smoothly zoom in */
    filter: opacity(0.7);
}

/* caption styles */
.custom-caption {
    font-family: 'Oswald';
    font-size: 16px;
    font-weight: 300;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
    transform: translateY(20px); /* Start slightly offset */
}

/* caption hover */
.gallery a:hover .custom-caption {
    opacity: 1;
    transform: perspective(600px);
}



/********* DISPLAY OF LARGE IMAGES *********/

/* thumbnail block */
.fancybox__thumbs {
    background-color: #333; /* thumbnail background */
}

/* individual thumbnails */
.fancybox__thumb {
    border-radius: 5px;    /* rounded corners */
}

.fancybox__caption {
    font-family: 'Oswald', serif;
    font-weight: 200;
    font-size: 20px; /* Adjust the size as needed */
}