.gallery-autodopravamiko-1 {
    width: 100%;
    padding: 56px 0;
    background: var(--bg-light);
}

@media (min-width: 1024px) {
    .gallery-autodopravamiko-1 {
        padding: 96px 0;
    }
}

.atm-gallery__tagline {
    text-align: center;
}

.atm-gallery__title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy-ink);
    text-align: center;
    margin: 0 0 32px;
}

.atm-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .atm-gallery__grid--cols-3,
    .atm-gallery__grid--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .atm-gallery__grid--cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .atm-gallery__grid--cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .atm-gallery__grid--cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .atm-gallery__grid {
        gap: 20px;
    }
}

.atm-gallery__item {
    position: relative;
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: var(--atm-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.atm-gallery__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.atm-gallery__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 48, 64, 0.55);
    color: var(--brand-yellow);
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.atm-gallery__item:hover .atm-gallery__thumb {
    transform: scale(1.05);
}

.atm-gallery__item:hover .atm-gallery__zoom,
.atm-gallery__item:focus-visible .atm-gallery__zoom {
    opacity: 1;
}

/* === Lightbox === */
.atm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(24, 40, 51, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.atm-lightbox[hidden] {
    display: none;
}

.atm-lightbox__inner {
    max-width: 90vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.atm-lightbox__img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
}

.atm-lightbox__caption {
    color: var(--bg-light);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    margin: 0;
    min-height: 1em;
}

.atm-lightbox__close,
.atm-lightbox__prev,
.atm-lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--bg-light);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.atm-lightbox__close:hover,
.atm-lightbox__prev:hover,
.atm-lightbox__next:hover {
    background: rgba(255, 198, 25, 0.25);
    color: var(--brand-yellow);
}

.atm-lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.atm-lightbox__prev,
.atm-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 28px;
}

.atm-lightbox__prev {
    left: 12px;
}
.atm-lightbox__next {
    right: 12px;
}

@media (min-width: 640px) {
    .atm-lightbox__prev {
        left: 28px;
    }
    .atm-lightbox__next {
        right: 28px;
    }
}
