/* ========================================
   Slideshow
   ======================================== */
   
/* Base slideshow container */
.component.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    container-type: inline-size;
}

/* Slides container */
.component.slideshow .slides {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Base slide state: hidden behind the active slide */
.component.slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}

/* Active and transitioning slides are brought above the base layer */
.component.slideshow .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 0;
}


/* ========================================
   Accessibility
   ======================================== */

.component.slideshow .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ========================================
   Slide content
   ======================================== */

/* Prevent long text from overflowing its container */
.component.slideshow .slide-content h2,
.component.slideshow .slide-content p {
    word-break: normal;
    overflow-wrap: anywhere;
}
.component.slideshow.transition-blur .slide {
    background-color: var(--grey-color);
}
.component.slideshow .slide-content {
    overflow: hidden;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Slide link */
.component.slideshow .slide-content .more {
    overflow-wrap: break-word;
}

.component.slideshow .more.btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
}

.component.slideshow .more svg {
    width: 0.7rem;
    height: 0.7rem;
}

/* Slide heading and description group */
.component.slideshow hgroup {
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
}


/* ========================================
   Slide image
   ======================================== */

.component.slideshow .slide-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: -1;
    position: relative;
}


/* ========================================
   Navigation arrows
   ======================================== */

/* Arrow container */
.component.slideshow .arrows {
    inset: 0;
    position: absolute;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

/* Individual arrow button */
.component.slideshow .arrow {
    position: absolute;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: transparent;
}

.component.slideshow .arrow svg {
    width: 2.5rem;
    height: 2.5rem;
}


/* ========================================
   Pause / play control
   ======================================== */

.component.slideshow .pause {
    position: absolute;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.component.slideshow .pause svg {
    width: 20px;
    height: 20px;
    display: block;
}


/* ========================================
   Indicators
   ======================================== */

/* Indicator button */
.component.slideshow .indicator {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
}

/* Indicator icon */
.component.slideshow .indicator svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Indicator container */
.component.slideshow .indicators {
    display: flex;
    position: absolute;
    z-index: 2;
}

/* Indicator dimensions */
.component.slideshow .indicators.horizontal {
    flex-direction: row;
}

.component.slideshow .indicators.vertical {
    flex-direction: column;
}

.component.slideshow .indicators.counter {
    flex-direction: row;
}


/* ========================================
   Indicator positions
   ======================================== */

/* Top */
.component.slideshow .indicators.top-left {
    top: 0;
    left: 0;
}

.component.slideshow .indicators.top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.component.slideshow .indicators.top-right {
    top: 0;
    right: 0;
}

/* Middle */
.component.slideshow .indicators.center-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.component.slideshow .indicators.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.component.slideshow .indicators.center-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* Bottom */
.component.slideshow .indicators.bottom-left {
    bottom: 0;
    left: 0;
}

.component.slideshow .indicators.bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.component.slideshow .indicators.bottom-right {
    bottom: 0;
    right: 0;
}


/* ========================================
   Slide content positions
   ======================================== */

/* Vertical position */
.component.slideshow .slide-content.top {
    justify-content: flex-start;
}

.component.slideshow .slide-content.middle {
    justify-content: center;
}

.component.slideshow .slide-content.bottom {
    justify-content: flex-end;
}

/* Horizontal position */
.component.slideshow .slide-content.left {
    align-items: flex-start;
    text-align: left;
}

.component.slideshow .slide-content.center {
    align-items: center;
    text-align: center;
}

.component.slideshow .slide-content.right {
    align-items: flex-end;
    text-align: right;
}


/* ========================================
   Arrow and pause positions
   ======================================== */

/* Horizontal position */
.component.slideshow .arrow.left,
.component.slideshow .pause.left {
    left: 0;
}

.component.slideshow .arrow.right,
.component.slideshow .pause.right  {
    right: 0;
}

.component.slideshow .arrow.center,
.component.slideshow .pause.center {
    left: 50%;
    transform: translateX(-50%);
}

/* Vertical position */
.component.slideshow .arrow.top,
.component.slideshow .pause.top {
    top: 0;
}

.component.slideshow .arrow.bottom,
.component.slideshow .pause.bottom {
    bottom: 0;
}

.component.slideshow .arrow.middle,
.component.slideshow .pause.middle {
    top: 50%;
}


/* ========================================
   Transition variants
   ======================================== */

/* Fade: opacity-only transition */
.component.slideshow.transition-fade .slide {
    transition: opacity 0.8s ease;
}

/* Zoom: opacity + scale transition */
.component.slideshow.transition-zoom .slide {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.5s ease;
}

.component.slideshow.transition-zoom .slide.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

/* Blur: opacity + blur transition */
.component.slideshow.transition-blur .slide {
    opacity: 0;
    filter: blur(10px);
    transition:
        opacity 0.8s ease,
        filter 0.5s ease;
}

.component.slideshow.transition-blur .slide.active {
    opacity: 1;
    filter: blur(0);
    visibility: visible;
}





/* Smooth horizontal slide transition */
.component.slideshow.transition-slide .slide {
    transform: translateX(100%);
}

.component.slideshow.transition-slide .slide.active {
    transform: translateX(0);
    visibility: visible;
    z-index: 1;
}

.component.slideshow.transition-slide .slide-enter-from-right {
    animation: slide-enter-from-right 0.8s ease both;
}

.component.slideshow.transition-slide .slide-enter-from-left {
    animation: slide-enter-from-left 0.8s ease both;
}

.component.slideshow.transition-slide .slide-exit-to-left,
.component.slideshow.transition-slide .slide-exit-to-right {
    opacity: 1;
    visibility: visible;
    z-index: 0;
}

.component.slideshow.transition-slide .slide-exit-to-left {
    animation: slide-exit-to-left 0.8s ease both;
}

.component.slideshow.transition-slide .slide-exit-to-right {
    animation: slide-exit-to-right 0.8s ease both;
}

@keyframes slide-enter-from-right {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes slide-enter-from-left {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

@keyframes slide-exit-to-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@keyframes slide-exit-to-right {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}