

.showcase-slide {
    position: relative;
    display: none;
    width: 100%;
    overflow: hidden;
}

.showcase-slides {
    position: relative;
    width: 100%;
}

.showcase-display {
    width: 100%;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.showcase-slide.active {
    display: block;
}


/* Background */

.showcase-background {
    width: 100%;
    overflow: clip;
}

.showcase-background img {
    display: block;
    width: 100%;
    height: auto;
    min-width: 2000px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.showcase-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: min(100%, 1000px);

    padding: 2rem;


    display: flex;
    flex-direction: column;
    justify-content: safe center;
    gap: 2rem;

    overflow-y: auto;

    z-index: 1;
}

.showcase-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
    flex-shrink: 0;
}
.showcase-bottom {
    width: 100%;
    text-align: center;
}


.showcase-prev,
.showcase-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    color: var(--text);
    font-family: Spectral, serif;
    font-size: 3rem;
    line-height: 1;

    text-decoration: none;
    opacity: 0.7;
}

.showcase-prev {
    left: max(1rem, calc(50% - 500PX - 1rem));
}


.showcase-next {
    right: max(1rem, calc(50% - 500px - 1rem));
}

.showcase-prev:hover,
.showcase-next:hover {
    color: var(--gold-bright);
    opacity: 1;
}



/* Book cover */

.showcase-cover {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.showcase-cover img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.85);
}








/* Text */

.showcase-bottom {

}

.showcase-bottom-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: stretch;
    margin-top: 1rem;
}

.showcase-mockup {
    display: flex;
    align-items: center;
}

.showcase-mockup img {
        display: block;
        width: 100%;
        height: auto;
    
}

.showcase-bottom-stuff {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    gap: 1rem;
    min-height: 200px;
}

.showcase-text {
    width: 100%;
    /*min-height: 0;*/
    height: var(--cover-height);
    max-width: 450px;
    font-size: 1.5rem;
    overflow-y: auto;
    align-content: start;
}

.showcase-title {
    margin: 0 0 1rem 0;
}

.showcase-subtitle {
    margin-bottom: 1.5rem;
}

.showcase-hook {
    margin-bottom: 1.5rem;
}

.showcase-text .section-divider {
    width: 100%;
    height: 3px;
    margin: 1.5rem 0;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 1rem;
}

.showcase-text .section-divider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.showcase-genre {
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
}

.showcase-content-warnings {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}



.showcase-button {
    display: inline-block;

    padding: 1rem 1rem;

    background: linear-gradient(
        to right,
        #5c1115 0%,
        #a4191e 25%,
        #c52a2f 50%,
        #a4191e 75%,
        #5c1115 100%
    );
    color: var(--text);

    text-decoration: none;

    border-radius: 4px;

    font-family: Cinzel, serif;
    font-weight: 700;
}

.showcase-button2 {
    display: inline-block;

    padding: 1rem 1rem;

background: linear-gradient(
    to right,
    #493A1D 0%,
    #68552C 25%,
    #846B36 50%,
    #68552C 75%,
    #493A1D 100%
);

    color: var(--text);

    text-decoration: none;

    border-radius: 4px;

    font-family: Cinzel, serif;
    font-weight: 700;
}

.showcase-button,
.showcase-button2 {
    width: min(320px, 100%);
    text-align: center;
    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.showcase-button:hover,
.showcase-button2:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }


/* Basic mobile fallback */

@media (max-width: 1200px) {

    .showcase-slide {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.showcase-slide.active {
    display: grid;
}

.showcase-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.showcase-background img {
    position: absolute;
    width: max(100%, 2000px);
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
}

.showcase-content {
    position: relative;
    inset: auto;
    left: auto;
    transform: none;
    width: auto;
    min-width: 0;
    overflow: visible;
    z-index: 1;
}

    .showcase-top {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }

    .showcase-cover {
        justify-content: center;
    }

    .showcase-cover img {
        width: 100%;
        max-width: 320px;
        height: auto;
        display: block;
    }

    .showcase-text {
        width: 100%;
        max-width: none;
        height: auto;
        overflow: visible;
        font-size: 1.25rem;
    }

    .showcase-bottom-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showcase-mockup {
        justify-content: center;
    }

    .showcase-mockup img {
        width: 60%;
        height: auto;
    }

    .showcase-bottom-stuff {
        min-height: 0;
        padding-bottom: 1rem;
    }

    .showcase-prev,
    .showcase-next {
        top: 1rem;
        transform: none;
        font-size: 2rem;
    }
}