@media (max-width: 768px) {
    #about img {
        width: 80%;
        height: auto;
    }
}

.artist-photo {
    max-height: 500px;
    /* ограничение высоты на больших экранах */
    width: auto;
}

@media (max-width: 768px) {
    .artist-photo {
        max-height: none;
        /* на мобильных разрешаем любую высоту */
        width: 100%;
        /* растягиваем на всю ширину */
    }
}


/* Общие стили для герба */
.coat-img {
    max-width: 630px;
    /* ограничение на больших экранах */
    width: auto;
    height: auto;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .coat-img {
        width: 100%;
        /* растягиваем на всю ширину экрана */
        max-width: 100%;
        height: auto;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: #333333;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #222222;
}

h1 {
    text-transform: uppercase !important;
    color: #222222 !important; /* цвет заголовка */
    font-size: 32px; /* можно подкорректировать под дизайн */
    font-weight: 600; /* чуть жирнее */
    margin-bottom: 20px; /* отступ снизу */
}

.navbar .nav-link {
    font-size: 15px;
    font-weight: 500;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.nav-tabs .nav-link {
    color: #333333;
    /* Цвет текста неактивных табов */
}

.nav-tabs .nav-link.active {
    color: black;
    /* Цвет текста активного таба */
    font-weight: bold;
}


/* === Gallery Page === */
#gallery {
    background-color: #fff;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* картинка не искажается */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* === Lightbox Styles === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightbox.show {
    display: flex;
}

/* Кнопки управления */
.lightbox-close,
.lightbox-arrow {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 20px;
    right: 35px;
    font-size: 3rem;
}

.lightbox-arrow.left {
    left: 25px;
}

.lightbox-arrow.right {
    right: 25px;
}

#lightboxCaption {
    font-size: 1rem;
    color: #fff;
    margin-top: 10px;
}


/* === Responsive === */
@media (max-width: 768px) {
    .gallery-photo {
        border-radius: 6px;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }
}

.arrow {
    margin-left: 6px;
    font-size: 12px;
}

.language-switcher {
    margin-left: 15px;
}

.flag-btn {
    display: flex;
    align-items: center;
    gap: 4px; /* расстояние между флагом и подписью */
    padding: 2px 6px;
    border-radius: 16px;
    border: 1px solid transparent;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    text-decoration: none;
    color: #000;
}

.flag-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.flag-btn:hover {
    border-color: #0d6efd;
    background-color: #e9ecef;
    transform: scale(1.05);
}

.flag-label {
    display: inline-block;
}

/* Стиль активного языка в выпадающем списке */
.active-language {
    font-weight: bold;
    background-color: #e7f1ff;
    border-color: #0d6efd;
    box-shadow: 0 0 3px rgba(13, 110, 253, 0.5);
}

/* Убираем стрелку, но не ломаем JS */
.dropdown-toggle::after {
    width: 0;
    height: 0;
    border: none;
}


.language-selector {
    position: relative;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    margin-left: 30px;
}

.lang-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

.lang-btn:hover {
    background: #e0e0e0;
}

.lang-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.arrow {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.25s ease;
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    padding: 5px 0;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
    min-width: 80px;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    text-decoration: none;
    color: #000;
    opacity: 0;
    transform: translateY(-10px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.dropdown-item.show-item {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-item:hover img {
    transform: scale(1.2);
}

.dropdown-item:hover {
    background-color: #ffffff;
}
