.gallery-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.gallery-title {
    text-align: center;
    font-size: 36px;
    color: #002466;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 50px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 36, 102, 0.12);
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
}

/* Обёртка изображения */
.gallery-image-wrapper {
    position: relative;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Title поверх изображения */
.image-title {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 36, 102, 0.85);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

/* Описание (если есть) */
.gallery-text {
    padding: 16px;
    background: #edf5ff;
}

.gallery-text p {
    margin: 0;
    font-size: 16px;
    color: #374151;
    line-height: 1.5;
}






.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.hidden {
    display: none;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

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

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}
