{# Wrappers #}
.testimonial__scroller {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    padding: 0.5rem;
}

.testimonial-cards {
    border-radius: inherit;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;  /* Firefox */
}

.testimonial-cards::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-snap-align: start;
    flex: 100%;
    min-width: 100%;
    border-radius: inherit;
}

.testimonial > div {
    border-radius: inherit;
}

@media (min-width: 768px) {
    
}

@media (min-width: 1024px) {
    .testimonial {
        flex-direction: row;
        gap: 0;
    }

    .testimonial > div {
        flex: 50%;
    }
}

{# Media #}
.testimonial .media {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.testimonial .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

{# Video Popup #}
.testimonial .media dialog {
    width: 90vw;
    max-width: 90%;
    border: none;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.testimonial .media dialog::backdrop {
    background: rgb(from #09213f r g b / 30%);
}

.testimonial .media dialog .inner {
    padding: 0.5rem;
    border-radius: 1rem;
    background: #fff;
}

.testimonial .media dialog iframe {
    border-radius: 1rem;
}

.testimonial .media dialog .close-button {
    background: #09213f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    z-index: 1;
}

.testimonial .media dialog .close-button:hover {
    background: #fff;
    color: #09213f;
}

.testimonial .media .show-button {
    border: none;
    background: #fff;
    color: #09213f;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: center;
}

.testimonial .media .show-button::before {
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 0;
}

.testimonial .media .show-button:hover {
    background: #09213f;
    color: #fff;
}

@media (max-width: 767px) {
    .testimonial .media {
        /* aspect-ratio: 1; */
        /* max-height: 360px; */
    }
}

@media (max-width: 1023px) {
    .testimonial .media {
        aspect-ratio: 1;
    }
}

{# Content #}
.testimonial .content {
    padding: 1rem 1.5rem;
    padding-bottom: calc(1rem + 50px + 1.5rem);  /* 1rem padding + 50px navarrows + 1.5rem gap */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial .content .text *:last-child {
    margin-bottom: 0;
}

/* @media (min-width: 768px) {
    .testimonial .content {
        padding: 2rem 3rem;
        padding-bottom: calc(2rem + 50px + 3rem);
        gap: 3rem;
    }
} */

@media (min-width: 1024px) {
    .testimonial .content {
        padding: 2rem 4rem;
        padding-bottom: calc(2rem + 50px + 4rem);  /* 2rem padding + 50px navarrows + 4rem gap */
        gap: 4rem;
    }
}

{# Attribution #}
.testimonial .attribution {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.testimonial .author-image {
    width: 64px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial .byline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.testimonial .byline .author {
    font-size: 1.125rem;
    font-weight: bold;
}

.testimonial .byline .title {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .testimonial .byline .author {
        font-size: 1.25rem;
    }
}

{# Nav Arrows #}
.testimonial__scroller .gha__nav-arrows {
    display: flex;
    width: auto;
    position: absolute;
    bottom: calc(0.5rem + 1rem);
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 1024px) {
    .testimonial__scroller .gha__nav-arrows {
        left: 75%;
        bottom: calc(0.5rem + 2rem);
    }
}
