/* ==========================================================================
   Portfolio slideshow
   Full-width slides on a horizontal track. Location tag, title and
   description sit top-left; the red arrow buttons sit top-right.
   ========================================================================== */

:root {
    --slide-red: #9b0000;        
    --slide-red-hover: #7a0000;
}

.slideshow {
    position: relative;
    height: 85vh;
    min-height: 480px;
    overflow: hidden;
    background: #151515;
}

/* ---- Track: all slides side by side, shifted with translateX ---- */

.slideshow__track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}

/* Photos sit side by side, each taking an equal share of the width.
   Change to grid-template-columns: 53fr 47fr for an uneven split. */
.slide__images {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: 100%;
}

.slide__image {
    display: block;
    min-width: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Soft light fade behind the text so dark copy stays readable on any photo */
.slide::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* ---- Top-left info ---- */

.slide__info {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 1;
    max-width: min(60ch, calc(100% - 200px));
    font-family: "Barlow Condensed", sans-serif;
    color: #151515;
}

.slide__location {
    display: inline-block;
    margin: 0;
    padding: 8px 32px;
    background: var(--slide-red);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.slide__title {
    margin: 20px 0 0;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.slide__description {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Top-right buttons ---- */

.slideshow__controls {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    gap: 12px;
}

.slideshow__btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: var(--slide-red);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.slideshow__btn:hover {
    background: var(--slide-red-hover);
}

.slideshow__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.slideshow__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

