/* ==========================================================
   Block: Hist Intro — frontend styles
   ========================================================== */

.hist-intro {
    padding: 36px 0 !important;
}

.hist-intro .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hist-intro-text h2 {
    font-size: 28px; /* section-title даёт font-family, weight, color, line-height */
    margin-bottom: 20px;
}


.hist-intro-text p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.hist-intro-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hist-photo {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-light), #bfdbfe);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(26, 86, 219, 0.25);
}

.hist-photo:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

.hist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .hist-intro .container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }

    .hist-intro {
        padding: 36px 0;
    }
}

/* Ссылка glightbox внутри плитки */
.hist-photo a.glightbox {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hist-photo a.glightbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hist-photo a.glightbox:hover img {
    transform: scale(1.05);
}

/* Оверлей с лупой — как в gallery */
.hist-photo-overlay-front {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 86, 219, 0.45);
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-size: 28px;
}

.hist-photo a.glightbox:hover .hist-photo-overlay-front {
    opacity: 1;
}
