.gallery-grid {
display: grid;
grid-template-columns: repeat(4, 200px);
grid-auto-rows: 200px;
gap: 10px;
justify-content: center;
transition: all 0.3s ease-in-out;
}

.gallery-item {
display: block;
overflow: hidden;
position: relative;
transition: all 0.5s ease;
}
.lg-image {
max-height: 85% !important;
}
.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
display: block;
transition: all 0.3s ease;
}

.gallery-item:hover {
transform: scale(1.02) !important;
}

/* Méretek */
.small {
grid-column: span 1;
grid-row: span 1;
}

.big {
grid-column: span 2;
grid-row: span 2;
}

.wide {
grid-column: span 2;
grid-row: span 1;
}
.lg-backdrop {
background-color: rgba(0, 0, 0, 0.5) !important;
}
img.lazy {
opacity: 0;
transition: opacity 0.5s ease-in-out;
}

img.lazy.loaded {
opacity: 1;
}
.lg-item {
padding-top: 30px !important;
padding-bottom: 30px !important;
}

@media (max-width: 768px) {
.gallery-grid {
grid-template-columns: repeat(2, 1fr);
grid-auto-rows: 150px;
}

.gallery-item.small,
.gallery-item.big,
.gallery-item.wide {
grid-column: span 1 !important;
grid-row: span 1 !important;
}
}
