/* ============================================================
   [DESKTOP & BASE STYLES]
   ============================================================ */
.gyg-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    box-sizing: border-box;
}

.gyg-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 196px 196px;
    gap: 8px;
    height: 400px;
    width: 100%;
}

.item-main { grid-row: 1 / span 2; grid-column: 1 / 2; }
.item-last { position: relative; }
.gyg-grid-item { position: relative; overflow: hidden; cursor: pointer; background-color: #f5f5f5; }

.gyg-grid-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Corner Radiuses */
.item-main { border-top-left-radius: 16px; border-bottom-left-radius: 16px; }
.gyg-grid-layout > .gyg-grid-item:nth-child(3) { border-top-right-radius: 16px; }
.gyg-grid-layout > .gyg-grid-item:nth-child(5) { border-bottom-right-radius: 16px; }

.gyg-mobile-ui { display: none; }

.gyg-show-all-btn {
    position: absolute; bottom: 16px; right: 16px; background-color: #ffffff; color: #1a1a1a;
    font-family: system-ui, sans-serif; font-size: 14px; font-weight: 600; padding: 8px 14px;
    border-radius: 8px; box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12); display: flex; align-items: center; gap: 8px; z-index: 10;
}

/* LIGHTBOX - MOBİL VE MASAÜSTÜ İÇİN DOKUNMA DOSTU */
.gyg-lightbox { 
    display: none; 
    position: fixed; 
    z-index: 999999999 !important; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.95); 
    touch-action: none; /* Sayfa arkada kaymasın diye kilitliyoruz */
}
.gyg-lightbox-content { 
    position: relative; 
    margin: auto; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 100%; 
    max-width: 900px; 
    text-align: center;
    pointer-events: auto !important;
}
.gyg-lightbox-content img { 
    width: 90%; 
    max-height: 80vh; 
    object-fit: contain; 
    border-radius: 12px; 
    user-select: none;
    -webkit-user-drag: none;
}
.gyg-close { position: absolute; top: 20px; right: 25px; color: #fff; font-size: 38px; font-weight: 200; cursor: pointer; z-index: 1000; padding: 10px; }
.gyg-prev, .gyg-next { cursor: pointer; position: absolute; top: 50%; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 24px; text-decoration: none; user-select: none; z-index: 100; }
.gyg-prev { left: 20px; } .gyg-next { right: 20px; }
.gyg-lightbox-counter { color: #fff; font-size: 14px; margin-top: 12px; font-family: system-ui, sans-serif; opacity: 0.7; }

/* ============================================================
   [ULTRA MOBIL CAROUSEL]
   ============================================================ */
@media screen and (max-width: 1023px) {
    
    html body .gyg-hero-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 16px !important;
        display: block !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        pointer-events: auto !important;
        touch-action: pan-y pin-x !important;
    }

    html body .gyg-grid-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        pointer-events: auto !important;
        
        gap: 0 !important;
        border-radius: 20px !important;
    }
    html body .gyg-grid-layout::-webkit-scrollbar { display: none !important; }

    html body .gyg-grid-layout .gyg-grid-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        position: relative !important;
        display: block !important;
        pointer-events: auto !important;
        
        grid-column: unset !important;
        grid-row: unset !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }

    html body .gyg-grid-layout .gyg-grid-item::before {
        content: "" !important;
        display: block !important;
        padding-top: 70% !important;
    }

    html body .gyg-grid-layout .gyg-grid-item img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    html body .gyg-mobile-ui { display: block !important; pointer-events: none !important; }

    html body .gyg-dots-container {
        position: absolute !important;
        bottom: 16px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 6px !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
    html body .gyg-dot { width: 6px !important; height: 6px !important; background-color: rgba(255, 255, 255, 0.4) !important; border-radius: 50% !important; }
    html body .gyg-dot.active { background-color: #ffffff !important; transform: scale(1.2) !important; }

    html body .gyg-mobile-counter-badge {
        position: absolute !important;
        bottom: 16px !important;
        right: 24px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: #ffffff !important;
        font-family: system-ui, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        z-index: 9999 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        pointer-events: auto !important;
    }

    html body .gyg-show-all-btn, html body .gyg-prev, html body .gyg-next { display: none !important; }
}