.banner-events {
    background-image: url('../img/events/events-banner-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-events::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.banner-events .container {
    position: relative;
    z-index: 2;
}

.info-section-events {
    background-color: var(--purple);
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.events-text-container {
    width: 65%;
    text-align: center;
    margin-bottom: 3rem;
}

.events-title {
    font-family: 'Anton', sans-serif;
    font-size: 6rem !important;
    font-weight: 400 !important;
    text-align: center;
}

.events-subtitle {
    margin: 0;
    text-align: center;
    font-size: 4rem !important;
    line-height: 1.2;
    font-family: 'Anton', sans-serif;
}

.event-box {
    width: 100% !important;
    text-align: center;
    border: 2px solid var(--beige);
    border-radius: 25px;
    padding: 2rem 1rem;
    margin: 0 auto;
    line-height: 1;
}

.event-box p {
    color: var(--beige);
    font-weight: bold !important;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem !important;
}

@media (max-width: 768px) {
    .wave-separator-top {
        margin-top: -18px;
    }
}

@media (max-width: 576px) {
    .events-text-container {
        width: 80%;
    }
    .events-title {
        font-size: 4rem !important;
    }

    .events-subtitle {
        font-size: 2rem !important;
    }

    .event-box p {
        font-size: 1.2rem !important;
    }
}


/* Gallery */
.gallery-wrapper {
    width: 100%;
}

.gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 2rem 0;
}

.gallery-text {
    display: flex;
    text-align: left;
    align-items: flex-end;
    justify-content: flex-start;
    height: 100%;
    margin-bottom: 0;
    padding: 20px;
    font-size: 2rem !important;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.img-full-height {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-full-height:hover {
    transform: scale(1.05);
}

.img-half-height {
    height: 50%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-half-height:hover {
    transform: scale(1.05);
}

.img-30-height {
    height: 30%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-30-height:hover {
    transform: scale(1.05);
}

.img-70-height {
    height: 70%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-70-height:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 1.5rem 0;
    }
    
    .gallery-text {
        font-size: 1.5rem !important;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 1rem 0;
    }
    
    .gallery-text {
        font-size: 1.2rem !important;
        padding: 12px;
        line-height: 1.3;
    }
    
    .img-30-height {
        height: 35%;
    }
    
    .img-70-height {
        height: 65%;
    }
}

@media (max-width: 576px) {
    .gallery-wrapper {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 1rem 0 2rem 0;
    }
    
    .gallery-wrapper::-webkit-scrollbar {
        height: 6px;
        display: block;
    }

    .gallery-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
    
    .gallery-wrapper::-webkit-scrollbar-thumb {
        background: var(--yellow, #FFD700);
        border-radius: 10px;
    }
    
    .gallery-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--yellow-dark, #FFC700);
    }
    
    .gallery-wrapper {
        scrollbar-width: thin;
        scrollbar-color: var(--yellow, #FFD700) rgba(0, 0, 0, 0.1);
    }

    .gallery-grid {
        display: flex;
        flex-direction: row;
        gap: 12px;
        padding: 0;
        width: max-content;
    }
    
    .col {
        display: contents;
    }
    
    .col img,
    .gallery-text {
        flex-shrink: 0;
        width: 80vw;
        max-width: 350px;
        height: 250px;
        object-fit: cover;
        border-radius: 10px;
        scroll-snap-align: center;
    }
    
    .gallery-text {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 1.5rem !important;
        padding: 20px;
    }
    
    .img-30-height,
    .img-70-height,
    .img-half-height,
    .img-full-height {
        height: 250px !important;
    }
}

@media (max-width: 360px) {
    .col img,
    .gallery-text {
        width: 85vw;
        height: 220px;
    }
    
    .img-30-height,
    .img-70-height,
    .img-half-height,
    .img-full-height {
        height: 220px !important;
    }
    
    .gallery-text {
        font-size: 1.3rem !important;
        padding: 15px;
    }
}

/* Events Form */
.form-section-events {
    background-color: var(--beige);
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-events-container{
    width: 60%;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .form-events-container{
        width: 80%;
    }
}