.cms-section {
    position: relative;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-padding-sm {
    padding-top: 48px;
    padding-bottom: 48px;
}

.section-padding-lg {
    padding-top: 120px;
    padding-bottom: 120px;
}

.section-my-0 { margin-top: 0; margin-bottom: 0; }
.section-my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.section-my-5 { margin-top: 3rem; margin-bottom: 3rem; }

@media (max-width: 767.98px) {
    .section-padding {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .section-padding-lg {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

/* ─── Hero: full-height bleed image panel ─── */

/* Desktop: absolutely positioned against the section, bleeds to right viewport edge */
.hero-image-panel {
    padding-top: 80px;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-image-panel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ─── Gallery: Swiper slider ─── */

/* Left padding mirrors Bootstrap container alignment; overflow visible for right-side peek bleed */
.gallery-swiper {
    padding-left: max(1rem, calc((100vw - 1320px) / 2 + 1rem)) !important;
    padding-bottom: 2.5rem;
    overflow: visible;
}

.gallery-swiper__slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Dot pagination */
.gallery-swiper__pagination .swiper-pagination-bullet {
    background: #555;
    opacity: 1;
}

.gallery-swiper__pagination .swiper-pagination-bullet-active {
    background: var(--jm-color-orange);
}

@media (max-width: 767.98px) {
    .gallery-swiper {
        padding-left: 1rem !important;
    }
}

/* ─── Event: Swiper slider ─── */

.event-swiper {
    padding-left: max(1rem, calc((100vw - 1320px) / 2 + 1rem)) !important;
    overflow: visible;
}

.event-swiper__slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 767.98px) {
    .event-swiper {
        padding-left: 1rem !important;
    }
}

/* ─── Partner: fixed-width flex grid ─── */

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.partner-grid__item a {
    max-width: 200px;
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-grid__item a img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}   

/* Left-to-right gradient: blends image edge into the black text background */
.hero-image-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, #000000 0%, transparent 100%);
    pointer-events: none;
}

/* Mobile (≤991px): back in document flow, stacks below the text container */
@media (max-width: 991.98px) {
    .hero-image-panel {
        position: relative;
        width: 100%;
        height: auto;
        padding: 0 0.75rem;
    }

    .hero-image-panel__img {
        height: auto;
        object-fit: unset;
        object-position: unset;
    }

    .hero-image-panel::after {
        display: none;
    }
}
