/* cmsms stylesheet: brbraniewo_gal modified: Monday, August 17, 2026 5:22:21 PM */
/*
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
*/
        /* main container max 1040px */
        .wrapper {
            max-width: 1040px;
            margin: 0 auto;
            padding: 0; /*20xp*/
            box-sizing: border-box;
          }
        /* net */
        .gallery {
            display: flex;
           flex-wrap: wrap;
        }

    .gallery-item {
            flex: 1 1 calc(25%); /* - 15px); */
            min-width: 220px; /* min witdh */
            overflow: hidden;
            background: #fff;
}
        .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;
        }

        .gallery-item img:hover {
            transform: scale(1.05, 1.05);
            filter: saturate(150%);
        }
        /* 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; }
        }

        /* mobile max  500px */
        @media (max-width: 500px) {
            .wrapper {
                /* padding: 10px 0; */ /* marigin 0 left/right */
            }
            .gallery-item {
                flex: 1 1 100%; /* 1 obrazek na całą szerokość ekranu */
            }
            .gallery-item img { 
                /* height: auto; */
                aspect-ratio: auto; /* prop 1:1 */
                object-fit: cover; /*  */
                cursor: default; /* do not click */
            }
        }
