﻿@media (min-width:768px) /*In this CSS code,
we are targeting screens with a minimum width of 768px.
If the screen is more than or equal to 768px wide,
the body code will run.*/
{



    @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond&family=DM+Mono:wght@400;500&display=swap');


    /* Basic styling for the gallery */



    .gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px;
    }

        .gallery img {
            margin: 10px;
            cursor: pointer;
            width: 95%;
            height: 95%;
            border-radius: 10px;
        }

    .div_textonimage {
        position: relative;
        width: 25%;
        text-align: center;
    }

    .bottom-right {
        position: absolute;
        color: rgb(255, 255, 255);
        width: 50%;
        border-radius: 10px;
        left: 50%;
        top: 95%;
        transform: translate(-50%, -50%);
        /* background-color: rgba(41, 41, 41, 0.4);*/
        padding: 0.05rem 0.5rem;
        text-align: center;
        font-size: 12px;
    }





    /* Lightbox styles */
    #lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        overflow: hidden;
        flex-direction: column;
    }

        #lightbox img {
            max-width: 80%;
            max-height: 60vh;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
            border-radius: 10px;
        }









    #close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        z-index: 2;
    }

    /* Style for navigation buttons */
    #prev-btn,
    #next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.5);
        border: none;
        padding: 10px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    #prev-btn {
        left: 10px;
    }

    #next-btn {
        right: 10px;
    }

        #prev-btn:hover,
        #next-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

    /* Styles for thumbnails */
    .thumbnail-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .thumbnail {
        max-width: 50px;
        width: 100px;
        cursor: pointer;
        margin-top: 40px;
        margin-left: 5px;
        margin-right: 5px;
        border: 2px solid #fff;
        transition: opacity 0.3s;
    }

        .thumbnail:hover,
        .thumbnail.active-thumbnail {
            opacity: 0.7;
        }
}




@media (max-width: 768px) /*In this CSS code,
    we are targeting screens with a maximum width of 768px.
    If the screen is less than or equal to 768px wide,
    the body code will run.*/
{



    @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond&family=DM+Mono:wght@400;500&display=swap');


    /* Basic styling for the gallery */



    .gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px;
    }

        .gallery img {
            margin: 10px;
            cursor: pointer;
            width: 90%;
            height: 90%;
            border-radius: 10px;
        }


    .div_textonimage {
        position: relative;
        width: 90%;
        text-align: center;
    }

    .bottom-right {
        position: absolute;
        color: rgb(255, 255, 255);
        width: 50%;
        border-radius: 10px;
        left: 50%;
        top: 90%;
        transform: translate(-50%, -50%);
        /* background-color: rgba(41, 41, 41, 0.4);*/
        padding: 0.05rem 0.5rem;
        text-align: center;
        font-size: 14px;
    }




    /* Lightbox styles */
    #lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        overflow: hidden;
        flex-direction: column;
    }

        #lightbox img {
            max-width: 100%;
            max-height: 100%;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
            border-radius: 10px;
        }









    #close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        z-index: 2;
    }

    /* Style for navigation buttons */
    #prev-btn,
    #next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.5);
        border: none;
        padding: 10px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    #prev-btn {
        left: 10px;
    }

    #next-btn {
        right: 10px;
    }

        #prev-btn:hover,
        #next-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

    /* Styles for thumbnails */
    .thumbnail-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .thumbnail {
        display: none;
        max-width: 50px;
        width: 100px;
        cursor: pointer;
        margin-top: 40px;
        margin-left: 5px;
        margin-right: 5px;
        border: 2px solid #fff;
        transition: opacity 0.3s;
    }

        .thumbnail:hover,
        .thumbnail.active-thumbnail {
            opacity: 0.7;
        }
}
