/* ========================================================
   GALLERY SECTION
   Extracted from old/assets/css/style.css
   (source lines 1888-1961 + responsive scatter).
   Self-contained: scoped CSS variables so it doesn't depend
   on the legacy --light / --dark / --gray globals.
   ======================================================== */

.gallery-section {
    --gallery-light: #ffffff;
    --gallery-dark:  #0a0a0a;
    --gallery-gray:  #5a5a60;

    padding: 80px 0;
    background: var(--gallery-light);
    overflow: hidden;
}

.gallery-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gallery-dark);
    letter-spacing: -0.5px;
}

.gallery-section .section-subtitle {
    text-align: center;
    color: var(--gallery-gray);
    font-size: 15px;
    margin-bottom: 40px;
}

.gallery-wrapper {
    padding: 0 40px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 15px;
    animation: galleryScroll 35s linear infinite;
    will-change: transform;
}

.gallery-track:hover {
    animation-play-state: paused;
}

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

.gallery-item {
    flex-shrink: 0;
    width: 320px;
    height: 230px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

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

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

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .gallery-track { animation: none; }
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-section { padding: 70px 0; }
}

@media (max-width: 992px) {
    .gallery-section { padding: 60px 0; }
    .gallery-section h2 { font-size: 30px; }
}

@media (max-width: 768px) {
    .gallery-section { padding: 50px 0; }
    .gallery-section h2 { font-size: 24px; }
    .gallery-wrapper { padding: 0 20px; }
    .gallery-item { width: 240px; height: 170px; }
}

@media (max-width: 480px) {
    .gallery-wrapper { padding: 0 16px; }
    .gallery-section h2 { font-size: 22px; }
    .gallery-section .section-subtitle { font-size: 14px; }
    .gallery-item { width: 220px; height: 150px; border-radius: 6px; }
}
