/* ---------- Tilted-card slideshow ---------- */

.tilted-card-slideshow {
    position: relative;
}

.tilted-card-slideshow-controls {
    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

    transform: translateY(-50%);
    z-index: 1000;

    pointer-events: none;
}

.tilted-card-slideshow-prev {
    position: absolute;
    left: -8px;

    pointer-events: auto;
}

.tilted-card-slideshow-next {
    position: absolute;
    right: -8px;

    pointer-events: auto;
}

.tilted-card-slideshow-button {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-nav-button);
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.tilted-card-slideshow-button:hover {
    background: var(--color-nav-button-hover);
}

.tilted-card-slideshow-button:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.tilted-card-slideshow-button img {
    display: block;
    width: auto;
    height: 14px;
}

.tilted-card-slideshow-prev img {
    transform: translateX(-1px);
}

.tilted-card-slideshow-next img {
    transform: translateX(1px);
}

.tilted-card-slideshow-transition-card {
    position: absolute !important;
    margin: 0 !important;
    pointer-events: none;
}

.tilted-card-slideshow.is-transitioning .tilted-card {
    will-change: left, top, transform, opacity;
}


/*
 * Cards outside the per-instance active slot range remain in the document
 * and retain their geometry. This keeps the component independent from
 * tilted-cards.js and preserves its original fitting measurements.
 */
.tilted-card-slideshow-inactive {
    visibility: hidden !important;
    pointer-events: none;
}


/* ---------- Per-instance slideshow typography ---------- */

.tilted-card-slideshow .tilted-card-text span {
    display: block;
    margin-top: var(--tilted-line-margin-top, 16px);
    font-size: var(--tilted-line1-size, 12px);
    font-weight: 500;
    color: #777;}

.tilted-card-slideshow .tilted-card-text strong {
    display: block;
    margin-top: var(--tilted-line-gap, 5px);
    font-size: var(--tilted-line2-size, 15px);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #555;
    white-space: pre-line;
}


/* ---------- Fixed-ratio slideshow card surface ---------- */

.tilted-card-slideshow .tilted-card {
    background: transparent;
    box-shadow: none;
}

.tilted-card-slideshow .tilted-card-surface {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    aspect-ratio: var(--tilted-card-aspect-ratio, 2 / 3);

    box-sizing: border-box;
    overflow: hidden;

    border: 5px solid #b0c0d0;
    border-radius: 12px;

    background: var(--color-bg-gallery-card, #e8f0f8);
    box-shadow: 0 4px 10px rgb(0 0 0 / 22%);
}

.tilted-card-slideshow[data-link-on-click="true"]
.tilted-card.tilted-card-has-link
.tilted-card-surface::after {
    content: "Watch on YouTube";

    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;

    width: max-content;
    max-width: calc(100% - 32px);

    padding: 10px 16px;
    box-sizing: border-box;
    border-radius: 999px;

    background: rgb(0 12 24 / 72%);
    color: var(--color-text-inverse);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;

    line-height: 1.4;
    text-align: center;

    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.tilted-card-slideshow[data-hover-scale="true"]
.tilted-card:not(.tilted-card-slideshow-inactive) {
    cursor: pointer;
}

.tilted-card-slideshow[data-link-on-click="true"]
.tilted-card.tilted-card-has-link {
    cursor: pointer;
}

.tilted-card-slideshow .tilted-card[tabindex="-1"]:focus {
    outline: none;
}

.tilted-card-slideshow[data-hover-scale="true"]
.tilted-card-surface {
    transition: transform 0.2s ease;
}

@media (hover: hover) {
    .tilted-card-slideshow[data-link-on-click="true"]:not(.is-transitioning)
    .tilted-card.tilted-card-has-link:not(.tilted-card-slideshow-transition-card):hover
    .tilted-card-surface::after {
        opacity: 1;
    }

    .tilted-card-slideshow[data-hover-scale="true"]:not(.is-transitioning)
    .tilted-card:not(.tilted-card-slideshow-transition-card):hover
    .tilted-card-surface {
        transform: scale(1.05);
    }
}

.tilted-card-slideshow .tilted-card-image {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .tilted-card-slideshow[data-link-on-click="true"]
    .tilted-card-surface::after {
        transition: none;
    }

    .tilted-card-slideshow[data-hover-scale="true"]
    .tilted-card-surface {
        transition: none;
    }
}

.tilted-card-slideshow .tilted-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;

    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    aspect-ratio: auto;
    object-fit: cover;
}

/*
 * With item.content, the image gets its own aspect ratio and the generic
 * content area fills the remaining part of the fixed card surface.
 */
.tilted-card-slideshow
.tilted-card-has-content
.tilted-card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: var(--tilted-image-aspect-ratio, 3 / 2);
}

.tilted-card-slideshow .tilted-card-content {
    flex: 1 1 auto;
    min-height: 0;


    overflow: hidden;

    background: var(--color-bg-gallery-card, #e8f0f8);
    color: var(--color-text, #111);
    text-align: left;
}

.tilted-card-slideshow .tilted-card-content[hidden] {
    display: none;
}

.tilted-card-slideshow .tilted-card-content > :first-child {
    margin-top: 0;
}

.tilted-card-slideshow .tilted-card-content > :last-child {
    margin-bottom: 0;
}

.tilted-card-slideshow .tilted-card-content h1,
.tilted-card-slideshow .tilted-card-content h2,
.tilted-card-slideshow .tilted-card-content h3,
.tilted-card-slideshow .tilted-card-content h4,
.tilted-card-slideshow .tilted-card-content p {
    margin-top: 0;
}

.tilted-card-slideshow .tilted-card-content p {
    margin-bottom: 8px;
}





.center-content {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* top */
    align-items: flex-start;     /* left */

    font-size: 13px;
    padding-left: 16px;
    padding-right: 12px;
    padding-top: 10px;
}

.center-content.text-center {
    align-items: center;
    text-align: center;
}

.center-content.large {
    font-size: 15px;
    padding-top: 8px;
}

.center-content .grey {
    color: #777;
}

.center-content.large p {
    line-height: 1.4;
}

.center-content-tools{
    font-size: 12px;

}
