/* ABSOLÚTNE IZOLOVANÝ CONTAINER PRE TRI FOTKY V RIADKU */
.sp-gallery-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 30px !important;
    margin: 40px auto 0 auto !important;
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

.custom-gallery-item {
    flex: 1 1 33.333% !important;
    max-width: 33.333% !important;
    position: relative !important;
    cursor: pointer !important;
    transition: transform 0.2s ease-in-out !important;
}

/* RESPONSIVITA pre mobily a tablety */
@media (max-width: 768px) {
    .sp-gallery-row {
        flex-wrap: wrap !important;
        padding: 0 20px !important;
        gap: 20px !important;
    }
    .custom-gallery-item {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* ŠTÝLY PRE POPUP OVERLAY A PREKLIKÁVANIE (ŠÍPKY) */
.sp-gallery-overlay {
    display: none;
    position: fixed;
    z-index: 999999 !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9) !important;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.sp-gallery-overlay-img {
    max-width: 85% !important;
    max-height: 85% !important;
    border-radius: 4px !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.8) !important;
    animation: spGalleryFadeZoom 0.25s ease-out;
}

.sp-gallery-overlay-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #ffffff !important;
    font-size: 50px !important;
    font-weight: 300 !important;
    cursor: pointer;
    font-family: Arial, sans-serif !important;
}
.sp-gallery-overlay-close:hover { color: #c5a982 !important; }

.sp-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff !important;
    font-size: 50px !important;
    font-weight: 300 !important;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif !important;
    transition: all 0.2s;
    z-index: 9999999 !important;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.sp-gallery-arrow:hover { 
    color: #c5a982 !important; 
    background: rgba(255,255,255,0.15);
}
.sp-arrow-left { left: 20px; }
.sp-arrow-right { right: 20px; }

@keyframes spGalleryFadeZoom {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}