        .gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            padding: 20px;
        }

        .gallery img {
            width: 230px;
            height: 120px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid #fff;
            border-radius: 5px;
            transition: transform 0.3s;
        }

        .gallery img:hover {
            transform: scale(1.1);
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            position: relative;
            max-width:1200px;
        }

        .modal-content img {
            width: 100%;
            height: auto;
        }

        .close, .prev, .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: #fff;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
            z-index: 1001;
        }

        .close {
            top: 10px;
            right: 20px;
            transform: none;
            font-size: 1.5rem;
        }

        .prev {
            left: 20px;
        }

        .next {
            right: 20px;
        }

        .caption {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            font-size: 1rem;
        }