﻿/* ===== Gallery Slideshow ===== */

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 650px;
    padding: 50px 60px;
    box-sizing: border-box;
    position: relative;
    background: linear-gradient( 135deg, #060b16 0%, #101c33 40%, #142b45 65%, #0e3b5a 85%, #0b2a3f 100% );
    background: radial-gradient(circle at 20% 20%, rgba(10, 166, 194, 0.15), transparent 40%), radial-gradient(circle at 80% 30%, rgba(21, 134, 193, 0.12), transparent 45%), linear-gradient(135deg, #070f1c 0%, #0f1b2d 40%, #152a44 100%);
}

.slideshow {
    position: relative;
    width: 100%;
    max-width: 980px; /*changed from 720 to use full width of images*/
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.slideshow .slide {
    display: none;
    position: relative;
}

.slideshow .slide.active {
    display: block;
}

.slideshow .slide picture,
.slideshow .slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

/* Arrow buttons — overlaid on the image edges */
.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 75px;
    height: 75px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
    padding: 0;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0, 46, 93, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.18);
}

.slideshow-prev:active,
.slideshow-next:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-prev {
    left: 12px;
}

.slideshow-next {
    right: 12px;
}

.slideshow-prev svg,
.slideshow-next svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Description bar */
.description {
    padding: 14px 20px;
    background: rgba(0, 20, 50, 0.95);
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #c8d8f0;
    letter-spacing: 0.4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    min-height: 48px;
}

.description::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #4a90d9;
    border-radius: 2px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Dot indicators */
.slideshow-dots {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    list-style: none;
    padding: 0;
    align-items: center;
}

.slideshow-dots li {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, width 0.25s ease;
}

.slideshow-dots li.active {
    background: #4a90d9;
    width: 22px;
    border-radius: 4px;
}

/* Slide counter */
.slideshow-counter {
    text-align: center;
    margin-top: 10px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* Counter inside the description bar */
.description {
    justify-content: space-between;
}

.slide-counter {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    white-space: nowrap;
    margin-left: 16px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

    .gallery-wrapper {
        padding: 20px 16px;
        min-height: unset;
    }

    .slideshow {
        max-width: 100%;
        border-radius: 6px;
    }

    .slideshow .slide picture,
    .slideshow .slide img {
        max-height: 260px;
    }

    .slideshow-prev,
    .slideshow-next {
        width: 36px;
        height: 36px;
    }

    .slideshow-prev svg,
    .slideshow-next svg {
        width: 16px;
        height: 16px;
    }

    .description {
        font-size: 12px;
        padding: 10px 14px;
        min-height: unset;
    }

    .slideshow-dots {
        margin-top: 10px;
        gap: 5px;
    }

    .slideshow-dots li {
        width: 6px;
        height: 6px;
    }

    .slideshow-dots li.active {
        width: 18px;
    }

    .slide-counter {
        font-size: 10px;
    }

}