/* SLIDER */

.slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* SLIDE */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: .6s;
    text-align: center;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* IMAGE */

.slide img {
    width: 100%;
    max-height: 500px;
    height: 500px;
    object-fit: contain;
    background: var(--bg-card);
}

/* CAPTION PANEL */

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    padding: 20px 60px;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.5),
            transparent);

    color: var(--text-color-white);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* LEFT ALIGN */
    text-align: left;


    align-items: center;
    /* LEFT ALIGN */
    text-align: center;
    /* LEFT TEXT */
}

/* DATE TAG */

.date {
    display: inline-block;
    background: var(--accent-1);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.gallery-link{
    z-index: 9;
}

.date>a {
    color: var(--text-color-black);
}

/* TITLE */

.caption h3 {
    margin: 5px 0;
    font-weight: 500;
    font-size: 26px;
}

/* TEXT */

.caption p {
    margin: 0;
    /* max-width: 900px; */
    font-size: 1rem;
    line-height: 1.5;
}

/* ARROWS */

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;

    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.nav:hover {
    background: rgba(0, 0, 0, 0.4);
}

.prev {
    left: 20px;
    background: rgba(0, 0, 0, 0.4);
}

.next {
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
}

/* DOTS */

.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: var(--bg-color-white-3);
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: var(--primary);
}

/* RESPONSIVE */

@media(max-width:768px) {
    .nav {
        font-size: 20px;
    }

    .slide img {
        max-height: 350px;
        height: unset;
    }

    .caption {
        position: relative;
        padding: 0px 10px 25px 10px;
        align-items: flex-start;
        text-align: left;
    }

    .caption h3 {
        font-size: 18px;
    }

    .caption p {
        font-size: 12px;
    }

}