:root {
    --primary-color: #2C3E50;
    --secondary-color: #C0A16B;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

.referenciak {
    background-color: #222;
    padding-bottom: 50px;
    overflow: hidden;
}

.referenciak__title {
    text-align: center;
    display: flex;
    flex-direction: column;
    font-size: large;
    padding: 20px 0;
}

.referenciak__title h1 {
    color: var(--secondary-color);
    margin-top: 20px;
}

.referenciak__title p {
    color: white;
}

.slider-wrapper {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.referenciak__imgs {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 20px 10px;
}

.referenciak__imgs img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.referenciak__imgs img:hover {
    transform: scale(1.05);
}

.slider-btn {
    background-color: rgba(192, 161, 107, 0.8);

    color: white;
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--secondary-color);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }

    .referenciak__imgs {
        overflow-x: auto;
    }
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}


.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin-top: 5vh;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}


.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary-color);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }

    .referenciak__imgs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}