.image-gallery {
    width: 100%;
    position: relative;
    display: block;
}

.image-gallery__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.image-gallery__grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

/* 2 columns */
.image-gallery__grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 columns */
.image-gallery__grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 columns */
.image-gallery__grid--4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.image-gallery__item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.image-gallery__thumb {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.image-gallery__thumb:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.image-gallery__thumb:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.image-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* GLightbox customizations */
/* Hide description completely */
.gslide-description {
    display: none !important;
}

.gslide-media {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Counter styling - bottom of lightbox */
.glightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 999999;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

/* Mobile counter */
@media (max-width: 768px) {
    .glightbox-counter {
        bottom: 15px;
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .image-gallery__grid--2-cols,
    .image-gallery__grid--3-cols,
    .image-gallery__grid--4-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .image-gallery__grid--4-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

