body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    font-family: Arial, sans-serif;
}

.social-gallery-section {
    background-color: var(--bg-primary);
    padding-top: var(--section-padding-y-lg);
    padding-bottom: var(--space-12); 
    min-height: 80vh;
    text-align: center;
}

@media (min-width: 768px) {
    .social-gallery-section {
        padding-top: var(--section-padding-y);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.social-gallery-headline h2 {
    font-family: var(--font-display);
    font-size: 75px !important;
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .social-gallery-headline h2 {
        font-size: 75px !important;
    }
}

.social-gallery-headline .highlight {
    color: var(--brand-red-primary); 
    text-shadow: 3px 3px 0px var(--brand-yellow-primary);
}

.social-icons-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin: 0 auto var(--space-12) auto;
    padding: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--fs-xl);
    transition: var(--transition-bounce);
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.facebook  { background-color: #1877F2; }
.social-icon.tiktok    { background-color: #000000; } 
.social-icon.youtube   { background-color: #FF0000; }

.scrolling-gallery-wrapper {
    width: 100%;
    overflow: hidden;
    padding: var(--space-12) 0;
    min-height: 400px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scrolling-gallery-track {
    display: flex;
    gap: var(--space-4);
    will-change: transform; 
    animation: scroll-gallery 20s linear infinite;
}

@keyframes scroll-gallery {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.gallery-item {
    flex-shrink: 0;
    width: 400px;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    border-color: var(--brand-yellow-primary);
    transform: scale(1.02);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: calc(var(--radius-lg) - 2px);
    background: transparent;
    z-index: 1;
}

.gallery-item::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close:hover {
    background: var(--brand-red-primary);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: var(--brand-yellow-primary);
    color: black;
}

.prev {
    left: -60px;
}

.next {
    right: -60px;
}

@media (max-width: 768px) {
    .social-gallery-headline h2 {
        font-size: 55px !important;
    }
    
    .gallery-item {
        width: 250px;
        height: 320px;
    }
    
    .nav-button {
        display: none;
    }

    .scrolling-gallery-track {
        animation: scroll-gallery 12s linear infinite;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 220px;
        height: 280px;
    }

    .scrolling-gallery-track {
        animation: scroll-gallery 10s linear infinite;
    }

    .social-gallery-headline h2 {
        font-size: 45px !important;
    }
}

@media (max-width: 360px) {
    .gallery-item {
        width: 200px;
        height: 250px;
    }

    .scrolling-gallery-track {
        animation: scroll-gallery 8s linear infinite;
    }

    .social-gallery-headline h2 {
        font-size: 40px !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .gallery-item {
        width: 200px;
        height: 250px;
    }
}