/* ================================
   BASE — clean, transparent
   ================================ */
.sgc-wrap {
    position: relative;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: transparent;
}
.sgc-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
    border: none;
    background: transparent;
}
.sgc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 31, 68, 0.55);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background .25s, opacity .25s;
    opacity: 0;
}
.sgc-wrap:hover .sgc-nav { opacity: 1; }
.sgc-nav:hover { background: #1C51AC; color: #0A1F44; }
.sgc-prev { left: 12px; }
.sgc-next { right: 12px; }

/* ================================
   DESIGN 1 — Auto-scroll Carousel
   ================================ */
.sgc-design-1 {
    overflow: hidden;
}
.sgc-design-1 .sgc-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 20px;
    scrollbar-width: none;
    background: transparent;
}
.sgc-design-1 .sgc-carousel::-webkit-scrollbar { display: none; }

.sgc-design-1 .sgc-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-height: 420px;
}
.sgc-design-1 .sgc-slide img {
    max-height: 420px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform .5s ease;
}
.sgc-design-1 .sgc-slide:hover img {
    transform: scale(1.03);
}

.sgc-zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.85);
    color: #0A1F44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.sgc-design-1 .sgc-slide:hover .sgc-zoom-icon {
    opacity: 1;
    transform: scale(1.05);
}

.sgc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.sgc-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1C51AC;
    cursor: pointer;
    transition: background .25s, transform .25s;
}
.sgc-dots span.active {
    background: #1C51AC;
    transform: scale(1.35);
}

/* ================================
   DESIGN 2 — Masonry
   ================================ */
.sgc-design-2 .sgc-masonry {
    columns: 3;
    column-gap: 16px;
}
.sgc-design-2 .sgc-masonry-item {
    display: block;
    position: relative;
    margin-bottom: 16px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}
.sgc-design-2 .sgc-masonry-item img {
    transition: transform .5s ease;
    border-radius: 8px;
}
.sgc-design-2 .sgc-masonry-item:hover img { transform: scale(1.05); }
.sgc-design-2 .sgc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,31,68,0.85));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s;
    border-radius: 8px;
}
.sgc-design-2 .sgc-masonry-item:hover .sgc-overlay { opacity: 1; }
.sgc-design-2 .sgc-overlay span {
    color: #1C51AC;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
}

/* ================================
   DESIGN 3 — Auto-Scroll Coverflow
   ================================ */
.sgc-design-3 {
    perspective: 1400px;
    padding: 40px 0;
    overflow: hidden;
}
.sgc-design-3 .sgc-coverflow {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    background: transparent;
}
.sgc-design-3 .sgc-cover-slide {
    position: absolute;
    width: 320px;
    max-height: 420px;
    transition: transform .6s cubic-bezier(.25,.8,.25,1), opacity .6s;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
}
.sgc-design-3 .sgc-cover-slide img {
    max-height: 420px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

/* ================================
   DESIGN 4 — Thumbnails + Preview
   ================================ */
.sgc-design-4 .sgc-preview {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: transparent;
}
.sgc-design-4 .sgc-preview-img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}
.sgc-design-4 .sgc-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.sgc-design-4 .sgc-thumb {
    flex: 0 0 100px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: opacity .25s, border-color .25s;
}
.sgc-design-4 .sgc-thumb img { border-radius: 6px; }
.sgc-design-4 .sgc-thumb:hover,
.sgc-design-4 .sgc-thumb.active {
    opacity: 1;
    border-color: #1C51AC;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .sgc-design-2 .sgc-masonry { columns: 2; }
}
@media (max-width: 768px) {
    .sgc-design-1 .sgc-slide { max-height: 320px; }
    .sgc-design-1 .sgc-slide img { max-height: 320px; }
}
@media (max-width: 640px) {
    .sgc-design-2 .sgc-masonry { columns: 1; }
    .sgc-design-1 .sgc-slide { max-height: 240px; }
    .sgc-design-1 .sgc-slide img { max-height: 240px; }
    .sgc-nav { width: 36px; height: 36px; font-size: 20px; opacity: 1; }
    .sgc-design-3 .sgc-coverflow { height: 300px; }
    .sgc-design-3 .sgc-cover-slide { width: 220px; max-height: 300px; }
    .sgc-design-3 .sgc-cover-slide img { max-height: 300px; }
    .sgc-design-4 .sgc-thumb { flex: 0 0 80px; }
}