﻿/* ABESE Yangın — Galeri grid */

.abes-gallery {
    margin: 3rem 0 1rem;
}

.abes-gallery__header {
    margin-bottom: 1.75rem;
}

.abes-gallery__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #c11e1e;
    position: relative;
    padding-bottom: 0.75rem;
}

.abes-gallery__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c11e1e 0%, #e04545 100%);
}

.abes-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.abes-gallery__item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fdf4f4;
    box-shadow: 0 10px 30px rgba(193, 30, 30, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.abes-gallery__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(193, 30, 30, 0.16);
}

.abes-gallery__link {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    text-decoration: none;
}

.abes-gallery__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.abes-gallery__item:hover .abes-gallery__link img {
    transform: scale(1.08);
}

.abes-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(193, 30, 30, 0.05) 0%, rgba(193, 30, 30, 0.72) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.abes-gallery__item:hover .abes-gallery__overlay {
    opacity: 1;
}

.abes-gallery__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #c11e1e;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(0.85);
    transition: transform 0.35s ease;
}

.abes-gallery__item:hover .abes-gallery__icon {
    transform: scale(1);
}

.abes-gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.1rem;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    background: linear-gradient(180deg, transparent 0%, rgba(120, 15, 15, 0.85) 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.abes-gallery__item:hover .abes-gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

.abes-gallery--cases .abes-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .abes-gallery__grid,
    .abes-gallery--cases .abes-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .abes-gallery__grid,
    .abes-gallery--cases .abes-gallery__grid {
        grid-template-columns: 1fr;
    }

    .abes-gallery__title {
        font-size: 1.45rem;
    }
}
