.gallery-section {
    padding: 100px 0 80px;
    background: var(--secondary-color);
    overflow: hidden;
}

.gallery-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-marquee + .gallery-marquee {
    margin-top: 24px;
}

.gallery-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.gallery-marquee-track--left {
    animation: marqueeLeft 40s linear infinite;
}

.gallery-marquee-track--right {
    animation: marqueeRight 40s linear infinite;
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.gallery-marquee-item {
    flex-shrink: 0;
    width: 520px;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(69, 26, 3, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-marquee-item:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(69, 26, 3, 0.22);
}

.gallery-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-marquee-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .gallery-section {
        padding: 80px 0 60px;
    }
    .gallery-marquee-item {
        width: 400px;
        height: 260px;
    }
    .gallery-marquee-track {
        gap: 16px;
    }
    .gallery-marquee + .gallery-marquee {
        margin-top: 16px;
    }
}

.mosaic-gallery {
    padding: 100px 0;
    background: var(--secondary-color);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.mosaic-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.mosaic-item:hover img {
    transform: scale(1.08);
}

.mosaic-item--tall {
    grid-row: span 2;
}

.mosaic-item--wide {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .mosaic-gallery {
        padding: 80px 0;
    }
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
        gap: 16px;
    }
    .mosaic-item--wide {
        grid-column: span 1;
    }
}

@media (max-width: 575px) {
    .gallery-section {
        padding: 60px 0 40px;
    }
    .gallery-marquee-item {
        width: 300px;
        height: 200px;
        border-radius: 14px;
    }
    .gallery-marquee-track {
        gap: 12px;
    }
    .gallery-marquee + .gallery-marquee {
        margin-top: 12px;
    }
    .gallery-marquee-track--left {
        animation-duration: 25s;
    }
    .gallery-marquee-track--right {
        animation-duration: 25s;
    }
    .mosaic-gallery {
        padding: 60px 0;
    }
    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 12px;
    }
    .mosaic-item--tall {
        grid-row: span 1;
    }
}
