/* Gallery mode switch + content gallery grid */

.gallery-content-catalog {
    padding-bottom: 100px;
}

.gallery-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.gallery-mode-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: border-color var(--transition) ease, color var(--transition) ease, background var(--transition) ease;
}

.gallery-mode-switch-btn:hover {
    color: var(--text-white);
    border-color: rgba(61, 153, 112, 0.45);
}

.gallery-mode-switch-btn.is-active {
    color: var(--text-white);
    background: rgba(61, 153, 112, 0.18);
    border-color: var(--color-green);
}

.gallery-content-empty {
    color: var(--text-muted);
    font-size: 16px;
}

.gallery-content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Content photo gallery on event/news pages */

.content-photo-gallery {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-photo-gallery-title {
    font-size: 24px;
    color: var(--text-white);
    margin: 0 0 20px;
}

.content-photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.content-photo-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: zoom-in;
}

.content-photo-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition) ease;
}

.content-photo-gallery-item:hover .content-photo-gallery-img {
    transform: scale(1.04);
}

@media (max-width: 1440px) {
    .gallery-content-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1200px) {
    .gallery-content-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gallery-content-grid { gap: 16px; }
}

@media (max-width: 640px) {
    .gallery-content-grid { grid-template-columns: 1fr; }

    .gallery-mode-switch-btn { width: 100%; }
}
