@charset "utf-8";
/* CSS Document */
:root {
            --overlay-bg: rgba(0, 0, 0, 0.85);
            --btn-bg: rgba(255, 255, 255, 0.2);
            --btn-hover: rgba(255, 255, 255, 0.4);
            --text-color: #ffffff;
            --transition-speed: 0.3s;
        }

        /* --- Gallery Layout --- */
        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            padding: 10px;
        }

        /* Optional: To make it a "scrollable line" instead of grid, 
           you would change container to display: flex and overflow-x: auto */

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            cursor: pointer;
            background: #fff;
            transition: transform var(--transition-speed) ease;
        }

        .gallery-item:hover {
            transform: scale(1.03);
        }

        .gallery-item img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
        }

        .gallery-caption {
            padding: 12px;
            text-align: center;
            font-size: 0.9rem;
            color: #333;
            background: white;
        }

        /* --- Fullscreen Lightbox --- */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay-bg);
            display: none; /* Hidden by default */
            justify-content: center;
            align-items: center;
            z-index: 1000;
            user-select: none;
            touch-action: manipulation;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 80%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
        }

        .lightbox-caption {
            color: var(--text-color);
            margin-top: 15px;
            font-size: 1.2rem;
            text-align: center;
        }

        /* --- Navigation Buttons --- */
        .lightbox-btn {
            position: absolute;
            width: 50px;
            height: 50px;
            background-color: var(--btn-bg);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
			line-height: 1;
            backdrop-filter: blur(5px);
            transition: background var(--transition-speed) ease;
            z-index: 1001;
        }

        .lightbox-btn:hover {
            background-color: var(--btn-hover);
        }

        .btn-prev { left: 20px; top: 50%; transform: translateY(-50%); }
        .btn-next { right: 20px; top: 50%; transform: translateY(-50%); }
        .btn-close { top: 20px; right: 20px; font-size: 30px; }

        /* Responsive adjustments */
        @media (max-width: 300px) {
            .btn-prev, .btn-next { display: none; } /* Hide arrows on mobile to favor swiping */
            .gallery-container { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
        }