/* GALLERY.CSS - Галерея и слайдер из вашего оригинального файла */

.gallery-slider {
    margin: 30px 0;
    background-color: #e7ecf1 !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(60, 72, 107, 0.15);
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #e7ecf1;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    background-color: #e7ecf1;
}

.slide {
    background-color: #e7ecf1 !important;
    min-height: 300px;
    min-width: 100%;
    height: auto;
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex !important;
}

.slide.active {
    display: flex;
}

.slide img {
    background-color: #e7ecf1;
    width: 100% !important;
    height: auto;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(60, 72, 107, 0.9));
    color: #e7ecf1;
    padding: 30px 20px 20px;
    background-color: #e7ecf1;
}

.slide-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #e7ecf1;
}

.slide-content p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
    opacity: 0.95;
    color: #d7e3f1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(231, 236, 241, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: #3c486b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(60, 72, 107, 0.3);
    z-index: 10;
}

.slider-btn:hover {
    background: #e7ecf1;
    transform: translateY(-50%) scale(1.1);
    color: #2c3e80;
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 8px;
    background: #f8f9fa;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cdd4da;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #587ca1;
    transform: scale(1.2);
}

.gallery-empty,
.gallery-error {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    color: #667688;
    border: 1px solid #e0e6ee;
}

.gallery-error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.biography-gallery {
    margin: 25px 0;
}

.biography-gallery .slide img {
    height: 350px;
}

.calendar-table th,
.calendar-table td {
    min-width: 40px;
    word-wrap: break-word;
}