/* Korema Gallery Styles */
.korema-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Volle Breite Option - 4 Spalten ab 1000px */
@media (min-width: 1000px) {
    .korema-gallery-full-width {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Standard Verhalten ohne volle Breite Option */
@media (min-width: 1000px) {
    .korema-gallery:not(.korema-gallery-full-width) {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 30px;
    }
}

/* Spezifische Spaltenanzahl mit Mindestbreite */
/*  */

.korema-gallery-item {
    position: relative;
    overflow: hidden;
	aspect-ratio: 3 / 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.korema-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    cursor: pointer;
}

.korema-image-container img {
    width: 100%!important;
    height: 100%!important;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform 0.3s ease;
}

.korema-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}


.korema-gallery-item:hover .korema-image-container img {
    transform: scale(1.1);
}

.korema-gallery-item:hover .korema-image-overlay {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .korema-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .korema-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Link Styling for Lightbox */
.korema-lightbox-trigger {
    display: block;
    text-decoration: none;
    color: inherit;
}

.korema-lightbox-trigger:hover {
    text-decoration: none;
    color: inherit;
}
