.gallery-page {
    padding: 40px 20px;
}

.gallery-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 34px;
    color: var(--primary);
}

/* =========================
   SLIDER WRAPPER
   ========================= */

.slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    border-radius: 14px;
    overflow: hidden;

    background: #000;
}

/* =========================
   SLIDES
   ========================= */

.slide {
    display: none;
    width: 100%;
    height: 500px;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   ARROWS
   ========================= */

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

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 10px;

    background: rgba(47, 62, 70, 0.8);
    color: #fff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    transition: 0.2s ease;

    z-index: 10;
}

#prev:hover,
#next:hover {
    background: rgba(47, 62, 70, 1);
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* =========================
   CAPTION BLOCK
   ========================= */

.slide-caption {
    max-width: 900px;
    margin: 20px auto 0;

    background: #fff;
    border-radius: 12px;

    padding: 20px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.slide-caption h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

#caption-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    line-height: 1.6;
    color: var(--text);
}

/* =========================
   MOBILE FIX
   ========================= */

@media (max-width: 768px) {

    .slide {
        height: 260px;
    }

    .gallery-title {
        font-size: 26px;
    }
}