.mash-carousel-section {
    padding: 0;
}

.mash-carousel-wrap {
    display: flex;
    align-items: center;
}

.mash-carousel-viewport {
    overflow: hidden;
    flex: 1;
}

.mash-carousel-track {
    display: flex;
    gap: 3.5rem;
    transition: transform 400ms cubic-bezier(.4,0,.2,1);
}

.mash-slide {
    flex: 0 0 calc((100% - 7rem) / 3);
}

.mash-carousel-item {
    display: block;
    position: relative;
/*     border-radius: 0.6rem; */
    overflow: hidden;
    height: 18.1rem;
    background: #1a1a2e;
    text-decoration: none;
    cursor: pointer;
}

.mash-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mash-carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,1,77,0);
    transition: background 280ms ease;
}

.mash-nav {
    flex-shrink: 0;
    width: 5.4rem;
    height: 5.4rem;
    min-width: 5.4rem;
    min-height: 5.4rem;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 200ms ease;
    overflow: visible;
}

.mash-nav img {
    width: 5.4rem;
    height: 5.4rem;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}

.mash-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.mash-nav--prev {
    margin-right: .8rem;

}

.mash-nav--next {
    margin-left: .8rem;
}

@media (hover: hover) {
    .mash-carousel-item:hover img {
        transform: scale(1.04);
        transition: transform 350ms ease;
    }

    .mash-carousel-item:hover::after {
        background: rgba(0,1,77,0.2);
    }

    .mash-nav:not(:disabled):hover {
        filter: brightness(0.9);
    }
}

@media (max-width: 767px) {
    .mash-slide {
        flex: 0 0 25.2rem;
    }

    .mash-carousel-item {
        width: 25.2rem;
        height: 14.5rem;
    }

    .mash-nav {
        width: 3rem !important;
        height: 3rem !important;
        min-width: 3rem !important;
        min-height: 3rem !important;
        padding: 0 !important;
    }

    .mash-nav img {
        width: 3rem;
        height: 3rem;
    }

    .mash-nav--prev {
        margin-right: 0.8rem;
		margin-left:0px;
    }

    .mash-nav--next {
        margin-left: 0.8rem;
    }
}

.mash-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mash-lightbox.is-open {
    display: flex;
}
.mash-lightbox__inner {
    display: grid;
    grid-template-columns: 4.8rem minmax(0, 77rem) 4.8rem;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    max-width: 100rem;
    width: 100%;
    margin: 0 auto;
}
.mash-lightbox__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
}

.mash-lightbox__content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.4rem;
}

.mash-lightbox__content iframe {
    width: 100%;
    aspect-ratio: 770 / 392;
    border: none;
    border-radius: 0.4rem;
    display: block;
}

.mash-lightbox__close {
    position: absolute;
    top: -4.4rem;
    right: 0;
    width: 2.4rem;
    height: 2.4rem;
    background: none !important;
    border: none !important;
    color: #fff;
    font-size: 2.4rem !important;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 200ms ease;
    box-shadow: none !important;
    padding: 0 !important;
}

.mash-lightbox__close:hover {
    opacity: 0.7;
}

.mash-lightbox .mash-lightbox__nav {
    flex-shrink: 0;
    width: 4.8rem;
    height: 4.8rem;
    min-width: 4.8rem;
    min-height: 4.8rem;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 200ms ease;
    overflow: visible;
}

.mash-lightbox .mash-lightbox__nav img {
    width: 4.8rem;
    height: 4.8rem;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}

.mash-lightbox .mash-lightbox__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.mash-lightbox .mash-lightbox__nav--prev {
    grid-column: 1;
    grid-row: 1;
}

.mash-lightbox .mash-lightbox__nav--next {
    grid-column: 3;
    grid-row: 1;
}

@media (hover: hover) {
    .mash-lightbox .mash-lightbox__nav:hover {
        filter: brightness(0.9);
    }
}

@media (max-width: 767px) {
    .mash-lightbox {
        padding: 6rem 1.6rem 2rem;
    }

    .mash-lightbox__inner {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        justify-items: center;
    }

    .mash-lightbox__media {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }

    .mash-lightbox .mash-lightbox__nav {
        width: 3rem !important;
        height: 3rem !important;
        min-width: 3rem !important;
        min-height: 3rem !important;
        padding: 0 !important;
    }

    .mash-lightbox .mash-lightbox__nav img {
        width: 3rem;
        height: 3rem;
    }

    .mash-lightbox .mash-lightbox__nav--prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .mash-lightbox .mash-lightbox__nav--next {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .mash-lightbox__close {
        top: -3.6rem;
    }
}
.mash-lightbox__content iframe.mash-lightbox__iframe--portrait {
    aspect-ratio: 9 / 16;
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
}
/* Ensure the wrapper maintains its expected height on load */
.mash-carousel-viewport {
    min-height: 12.5rem; /* Match your typical desktop slide height */
    display: flex;
    overflow: hidden;
}

@media (max-width: 767px) {
    .mash-carousel-viewport {
        min-height: 10rem; /* Match your mobile slide height */
    }
}
