/* ===== WRAPPER ===== */
.ins-sgs-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    /* δεν θέλουμε δικό του background */
    background: transparent;
    overflow: hidden; /* κρύβει overscroll στα άκρα */
}

/* ===== ΟΡΙΖΟΝΤΙΟ TRACK ===== */
.ins-sgs-track {
    display: flex;
    flex-wrap: nowrap;
    gap: .6rem;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;

    /* αφαιρούμε padding για να έρχονται οι εικόνες σχεδόν κάτω από τα βελάκια */
    padding: 0 2.5rem 0 2.5rem;

    /* κρύψε scrollbar σε όλα τα browsers */
    scrollbar-width: none;          /* Firefox */
}
.ins-sgs-track::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari / Edge */
}

/* ===== SLIDE / CARD ===== */
.ins-sgs-slide {
    flex: 0 0 auto;
    width: clamp(220px, 40vw, 360px);
    scroll-snap-align: start;

    /* χωρίς background, χωρίς radius, χωρίς σκιά */
    background: transparent;
    border-radius: 0;
    box-shadow: none;

    overflow: hidden;
    cursor: pointer;
    position: relative;

    /* για να μην αφήνει line-height space κάτω από τις εικόνες */
    line-height: 0;
}

/* Η εικόνα πρέπει να καλύπτει όλο το διαθέσιμο χώρο */
.ins-sgs-imgwrap {
    width: 100%;
    height: 100%;
    background: #000; /* fallback να μη δεις κενό σε loading */
    line-height: 0;
}
.ins-sgs-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ΠΑΙΖΕΙ ΡΟΛΟ: γεμίζει την κάρτα */
    border-radius: 0;
}

/* Απόκρυψη caption τελείως */
.ins-sgs-caption {
    display: none !important;
}

/* ===== ΒΕΛΑΚΙΑ ΠΛΕΥΡΩΝ =====
   - πάνε τέρμα αριστερά/δεξιά
   - full height του wrapper (σαν στην εικόνα σου)
   - χωρίς χρωματιστό background, μόνο το βελάκι
*/
.ins-sgs-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.2rem;
    border: 0;
    background: #2f9f7e;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    /* καμία σκιά */
    box-shadow: none;
    padding: 0;
    height: 100%;
}


/* κουμπί αριστερά */
.ins-sgs-prev {
    left: 0;
}

/* κουμπί δεξιά */
.ins-sgs-next {
    right: 0;
}

.ins-sgs-nav span,
.ins-sgs-nav .ins-sgs-nav-icon {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* για να φαίνεται πάνω από φωτεινή εικόνα */
    user-select: none;
    pointer-events: none;
}

.ins-sgs-nav:hover {
    background: #37b891;
    color: #000;
}

/* ===== LIGHTBOX ===== */
.ins-sgs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0; /* δεν θέλουμε extra whitespace */
}

.ins-sgs-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.ins-sgs-lightbox-content {
    position: relative;
    width: 100vw;
    height: 100vw;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ins-sgs-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    background: #000;
}

.ins-sgs-lightbox-close {
    position: fixed;
    top: 0;
    right: -2rem;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0px 1px 5px #ffffff85;
    box-shadow: none;
}
@media (max-width: 600px) {
    .ins-sgs-lightbox-close {
        top: -2.5rem;
        right: 0;
    }
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .ins-sgs-nav {
        width: 1.75rem;
    }

    .ins-sgs-nav span,
    .ins-sgs-nav .ins-sgs-nav-icon {
        font-size: 1.6rem;
    }

    .ins-sgs-track {
        gap: 0.75rem;
        padding: 0 2rem;
    }

    .ins-sgs-slide {
        width: clamp(200px, 70vw, 320px);
    }
}
