/* Simple Gallery - grid gorunumu */
.sg-gallery {
    display: grid;
    grid-template-columns: repeat(var(--sg-columns, 4), 1fr);
    gap: 10px;
    margin: 1em 0;
}

.sg-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
    background: #eee;
    aspect-ratio: 4 / 3;
}

.sg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.sg-item:hover img {
    transform: scale(1.05);
}

.sg-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
}

@media (max-width: 768px) {
    .sg-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Lightbox */
.sg-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.sg-lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.sg-lightbox-close,
.sg-lightbox-prev,
.sg-lightbox-next {
    position: absolute;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 4px;
}

.sg-lightbox-close {
    top: 20px;
    right: 20px;
}

.sg-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.sg-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.sg-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}
