﻿/*#darkbox {*/
    /*width: 1280px;*/
    /*max-width: 90vw;*/
    /*height: 720px;*/
    /*max-height: 90vh !important;
    margin-left: auto;*/ /* to center the div */
    /*margin-right: auto;*/ /* to center the div */
    /*position: absolute;
    top: 0;
    left: 0;
    background-color: #333;
    overflow: hidden;
    text-align: center;
    border-style: solid;
    border-color: red;
    border-width: 5px;
    border-radius: 10px;
    background-color: transparent;
    box-shadow: 0 0 100px 100px #000;
    padding: 0;
}

.darkboximg {
    padding: 0;
    max-width: 90vw !important;
    max-height: 90vh !important;
    margin-left: auto;*/ /* to center the div */
    /*margin-right: auto;*/ /* to center the div */
    /*overflow: hidden;*/
    /* max-width: 1216px;*/
    /*max-height: 684px;*/
    /* width: auto !important;
    height: 99% !important;
    z-index: 99;
    top: auto !important;
    left: auto !important;
    padding-top: 0px;
    border-style: solid;
    border-color: red;
    border-width: 5px;
    border-radius: 10px;
    background-color: transparent;*/
/*}*/

/*#darkbox {
    position: fixed;*/ /* Changed to fixed */
    /*top: 0;
    left: 0;
    width: 100%;*/ /* Full width */
    /*height: 100%;*/ /* Full height */
    /*background-color: rgba(0, 0, 0, 0.8);*/ /* Dark semi-transparent background */
    /*display: flex;*/ /* Use flexbox for centering */
    /*justify-content: center;*/ /* Center horizontally */
    /*align-items: center;*/ /* Center vertically */
    /*z-index: 1000;*/ /* Ensure it's on top of everything */
    /*overflow: auto;*/ /* Allow scrolling if the image is too large */
    /*padding: 20px;*/ /* Add some padding around the image */
    /*box-sizing: border-box;*/ /* Include padding in width/height */
/*}

.darkboximg {
    max-width: 90vw;*/ /* Max width: 90% of viewport width */
    /*max-height: 90vh;*/ /* Max height: 90% of viewport height */
    /* Removed margin-left and margin-right.  Flexbox centers it. */
    /*border: 5px solid red;*/ /* Keep your border style */
    /*border-radius: 10px;*/ /* Keep your border radius */
    /*background-color: transparent;*/ /* Keep background transparent */
    /*box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);*/ /* Add a subtle shadow */
/*}*/

#darkbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.darkboximg {
    max-width: 90vw;
    max-height: 90vh;
    border: 5px solid red;
    border-radius: 10px;
    background-color: transparent;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    object-fit: contain;
}

    .darkboximg[style*="cursor: move"] {
        position: relative;
        margin: 20px;
    }

#gallery {
    line-height: 0;
    -webkit-column-count: 6;
    -webkit-column-gap: 5px;
    -moz-column-count: 6;
    -moz-column-gap: 5px;
    column-count: 6;
    column-gap: 5px;
    margin-top: 2rem;
}

    #gallery img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 5px;
        filter: grayscale(100%);
        transition: filter 2s;
    }

        #gallery img:hover {
            filter: none;
        }

@media (max-width: 1200px) {
    #gallery {
        -moz-column-count: 4;
        -webkit-column-count: 4;
        column-count: 4;
    }
}

@media (max-width: 1000px) {
    #gallery {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}

@media (max-width: 800px) {
    #gallery {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}

@media (max-width: 400px) {
    #gallery {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
}
