/* GALERİ */
.galeri-main {
    background: #fff;
}

.galeri-hero {
    padding: 52px 0 36px;
    border-bottom: 1px solid #e8e8e8;
}

.galeri-title {
    font-size: 32px;
    font-weight: 900;
    color: #111;
    margin: 8px 0 6px;
}

.galeri-hero-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    max-width: 640px;
    margin-top: 8px;
}

.galeri-sub {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.galeri-section {
    padding: 32px 0 80px;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.g-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f0f0;
}

.g-img {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.g-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
    aspect-ratio: 1/1;
}

.g-item:hover .g-img img {
    transform: scale(1.07);
}

.g-ov {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}

.g-item:hover .g-ov {
    opacity: 1;
}

.g-ov svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    stroke-width: 1.8;
}

/* Lightbox */
.lb {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .96);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lb.open {
    display: flex;
}

.lb>img {
    max-width: 88vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

.lb-x {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, .1);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-x:hover {
    background: rgba(255, 255, 255, .2);
}

.lb-p,
.lb-n {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .08);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.lb-p {
    left: 20px;
}

.lb-n {
    right: 20px;
}

.lb-p:hover,
.lb-n:hover {
    background: rgba(255, 255, 255, .18);
}

#lbNum {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 1100px) {
    .galeri-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .galeri-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}