/* ========================================
   Haber Resim Galerisi Styles
======================================== */

.haber-galeri-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

    .haber-galeri-section .widget-main-title h4 {
        font-size: 24px;
        font-weight: 600;
        color: #1f1f25;
        margin-bottom: 25px;
        position: relative;
        padding-left: 15px;
    }

        .haber-galeri-section .widget-main-title h4::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 24px;
            background: linear-gradient(135deg, #0f7c90 0%, #0a5968 100%);
            border-radius: 2px;
        }

.haber-galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.haber-galeri-item {
    position: relative;
    overflow: hidden;
    height: 192px;
    /* width: 150px; */
    border-radius: 12px;
    background: #f8f8f8;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .haber-galeri-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(15, 124, 144, 0.7) 0%, rgba(10, 89, 104, 0.7) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
    }

    .haber-galeri-item:hover::before {
        opacity: 1;
    }

    .haber-galeri-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .haber-galeri-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .haber-galeri-item:hover img {
        transform: scale(1.1);
    }

.haber-galeri-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.haber-galeri-item:hover .haber-galeri-overlay {
    opacity: 1;
}

.haber-galeri-zoom-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0f7c90;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.haber-galeri-item:hover .haber-galeri-zoom-icon {
    transform: scale(1.1) rotate(90deg);
    background: #0f7c90;
    color: #ffffff;
}

.haber-galeri-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(31, 31, 37, 0.85);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* Magnific Popup Ãƒâ€“zelleÃ…Å¸tirmesi */
.mfp-bg {
    background: #000000;
    opacity: 0.95;
}

.mfp-figure {
    cursor: zoom-out;
}

    .mfp-figure::after {
        background: transparent;
        box-shadow: none;
    }

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
    background: rgba(15, 124, 144, 0.9);
    color: #ffffff;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

    .mfp-image-holder .mfp-close:hover,
    .mfp-iframe-holder .mfp-close:hover {
        background: #0f7c90;
        transform: rotate(90deg);
    }

.mfp-arrow {
    background: rgba(15, 124, 144, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .mfp-arrow:hover {
        background: rgba(15, 124, 144, 0.9);
    }

    .mfp-arrow::before,
    .mfp-arrow::after {
        border: none;
        margin: 0;
        top: 50%;
        transform: translateY(-50%);
    }

.mfp-arrow-left::before {
    content: '<';
    font-size: 28px;
    color: #ffffff;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
}

.mfp-arrow-right::before {
    content: '>';
    font-size: 28px;
    color: #ffffff;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
}

.mfp-counter {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Loading Spinner */
.mfp-preloader {
    color: #0f7c90;
}

/* Responsive Styles */
@media only screen and (max-width: 767px) {
    .haber-galeri-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 31px;
    }

    .haber-galeri-section .widget-main-title h4 {
        font-size: 20px;
    }

    .haber-galeri-zoom-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .haber-galeri-count {
        font-size: 11px;
        padding: 4px 10px;
        bottom: 8px;
        left: 8px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .haber-galeri-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media only screen and (min-width: 1200px) {
    .haber-galeri-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Empty State */
.haber-galeri-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}
