@charset "utf-8";
/* CSS Document */
/* Общие стили для страниц галереи Москвы (moscow1–moscow4) */

.gallery-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.gallery-title .main-word {
    display: block;
}
.gallery-title .sub-keywords {
    font-size: 1.5rem !important;
    font-weight: normal;
    display: block;
    margin-top: 0.25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #010D1F;
    width: 280px;
    height: 320px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.gallery-item img {
    max-width: 100%;
    max-height: 210px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 10px 10px 5px 10px;
    flex-shrink: 0;
}

.gallery-item figcaption {
    width: 100%;
    padding: 5px 15px 10px 15px;
    background-color: #010D1F;
    color: #ffffff;
    text-align: center;
    min-height: 55px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-item figcaption .painting-title {
    margin: 0;
    font-size: 1.1rem;
    color: #d4af37;
    font-weight: 300;
    line-height: 1.3;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-link {
    text-decoration: none;
    display: block;
}

.lsi-block {
    margin: 40px auto 20px;
    padding: 0 20px;
    background: none;
    border: none;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cccccc;
    text-align: center;
}
