.photo-carousel{
    width: 100%;
    max-width: 100%;
    margin: var(--block-margin) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.photo-carousel.animate__animated{
    animation-name: fadeInUp;
}

.photo-carousel-heading{
    margin: 0 auto var(--row-gap);
    width: 100%;
    max-width: var(--wide-width);
    font: var(--font-elevated-2);
}

.photo-carousel-heading h2{
    text-transform: uppercase;
}

.photo-carousel-heading h2[data-title-size="big"]{
    font: var(--font-headline-0);
}

.photo-carousel-heading h2[data-title-size="bigger"]{
    font: var(--font-headline-00);
}

.photo-carousel-heading > *:last-child{
    margin-bottom: 0;
}

.photo-carousel-swiper{
    width: 100%;
}

.photo-carousel-swiper .swiper-wrapper{
    padding-left: calc((100% - var(--wide-width)) / 2);
}

.photo-carousel-image{
    --max-image-size: 35rem;
    width: auto;
    max-width: min(calc(var(--max-image-size) + var(--item-column-gap)), calc(70vw + var(--item-column-gap)));
    max-height: var(--max-image-size);
    padding: var(--item-row-gap) var(--item-column-gap) var(--item-row-gap) 0;
    transition: opacity 0.15s ease;
}

.photo-carousel-swiper .swiper-wrapper .photo-carousel-image:not(.was-active){
    opacity: 0;
}

.photo-carousel-swiper .swiper-wrapper .photo-carousel-image.swiper-slide-active,
.photo-carousel-swiper .swiper-wrapper .photo-carousel-image.swiper-slide-active ~ .photo-carousel-image{
    opacity: 1;
}

.photo-carousel-image.rotate-left{
    transform: rotate(-3.5deg);
}

.photo-carousel-image.rotate-right{
    transform: rotate(3.5deg);
}

.photo-carousel-image-inner{
    border-radius: 4rem;
    overflow: hidden;
    max-height: 100%;
}

.photo-carousel-image img{
    max-height: 100%;
    object-fit: cover;
}

.photo-carousel-navigation{
    width: 100%;
    max-width: var(--wide-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.photo-carousel-navigation button{
    width: 3.5rem;
    height: 2.2rem;
    pointer-events: all;
}

.photo-carousel-navigation button svg *{
    transition: all 0.3s ease;
}

.photo-carousel-navigation button svg rect{
    fill: var(--color-white);
}

.photo-carousel-navigation button:is(:hover, :focus, :active){
    outline: none;
}

.photo-carousel-navigation button svg path{
    stroke: var(--link-color);
}

.photo-carousel-navigation button:is(:hover, :focus, :active) svg path{
    stroke: var(--hover-link-color);
}

@media (min-width: 768px){
    .photo-carousel-image{
        --max-image-size: 50rem;
    }
}