/* cmsms stylesheet: fotojs_gal_css_grid modified: Wednesday, October 7, 2026 4:50:59 PM */
/*gallery*/
        /* main container max 1040px */
        .wrapper {
            max-width: 1280px;
            margin: 0 auto;
            padding: 2rem 0 0 0;
            box-sizing: border-box;
          }
        /* net */
/* ------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 0;
    max-width: 1280px; 
    margin: 0 auto; 
    width: 100%;
}

.gallery-item {
    background: #fff;
    padding: 0;
    border-radius: 0; 
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
     transform: scale(1.05, 1.05);
     filter: saturate(130%);
}

.gallery-item img {
     width: 100%;
     height: 250px;
     object-fit: cover; /* cover */
     cursor: pointer;
     border-radius: 0;
     display: block;
     transition: filter 0.2s,
     transform 0.2s ease-in-out;
}
/* ------ */
        /* Hidden win mod - 75% black+blur */
        .modal {
            display: none; 
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            justify-content: center;
            align-items: center;
        }
        /* container for big pic */
        .modal-box {
            position: relative;
            max-width: 85%;
            max-height: 85%;
            display: flex;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        }
        /* Big pic in window */
        .modal-content {
            width: 100%;
            height: auto;
            max-height: 85vh;
            object-fit: contain; /* full pic */
            border-radius: 0;
            display: block;
        }
        /* But navi */
        .nav-btn {
            position: absolute;
            color: white;
            font-size: 50px;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
            padding: 15px;
            transition: color 0.2s;
        }
        .nav-btn:hover {
            color: #aaa;
        }
        .prev-btn { left: 30px; }
        .next-btn { right: 30px; }
        .close-btn { top: 20px; right: 30px; font-size: 40px; }

        /* mobile min 501px */
        @media (min-width: 501px) and (max-width: 768px) {

            .nav-btn { font-size: 40px; padding: 10px; }
            .prev-btn { left: 10px; }
            .next-btn { right: 10px; }
            .gallery { grid-template-columns: repeat(2, 1fr); }
        }

        /* mobile max  500px */
        @media (max-width: 500px) {
            .wrapper {
                /* padding: 10px 0; */
                /* marigin 0 left/right */
            }

            .gallery { grid-template-columns: 1fr; }
  
            .gallery-item img { 
                /* height: auto; */
                aspect-ratio: auto; /* prop 1:1 */
                object-fit: cover; /*  */
                cursor: default; /* do not click */
            }
        }
