/**
 * Widget: block-html|photogallery-text
 * Due colonne: photogallery (immagini con card descrittiva, slider) + pannello testo.
 * Slider gestito dal component horizontal-cycle-slider (classi hcs-*).
 */

.block-html-photogallery-text {
    --bh-ink: var(--website-color-txt-title, #3D3D3D);
    display: block;
    background: var(--website-color-secondary);
    overflow: hidden;
}
.block-html-photogallery-text .block-html-photogallery-text-inner {
    max-width: var(--website-container-max-width, 1440px);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
}

/* --- Gallery (box) --- */
.block-html-photogallery-text .block-html-photogallery-text-gallery {
    position: relative;
    height: clamp(380px, 48vw, 580px);
    border-radius: 12px;
    overflow: hidden;
    background: #1C1917;
}
.block-html-photogallery-text .block-html-photogallery-text-item { list-style: none; }

.block-html-photogallery-text .block-html-photogallery-text-card {
    position: relative;
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.block-html-photogallery-text .block-html-photogallery-text-media { position: absolute; inset: 0; z-index: 0; }
.block-html-photogallery-text .block-html-photogallery-text-img, .block-html-photogallery-text .block-html-photogallery-text-media picture { width: 100%; height: 100%; display: block; }
.block-html-photogallery-text .block-html-photogallery-text-img { object-fit: cover; }

/* Card descrittiva sovrapposta (in alto a sinistra) */
.block-html-photogallery-text .block-html-photogallery-text-caption {
    position: absolute;
    left: clamp(16px, 2vw, 32px);
    top: clamp(16px, 2vw, 32px);
    z-index: 1;
    max-width: min(82%, 340px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    background: var(--website-third, #FFF5E2);
    border-radius: 10px;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.45);
}
.block-html-photogallery-text .block-html-photogallery-text-caption-title {
    color: var(--bh-ink);
    text-transform: uppercase;
    font-size: 1.15rem;
    line-height: 1.2;
}
.block-html-photogallery-text .block-html-photogallery-text-caption-text {
    color: var(--website-color-txt-body, #4D5359);
    font-size: .85rem;
    line-height: 1.5;
}
.block-html-photogallery-text .block-html-photogallery-text-caption-cta {
    color: var(--website-primary, #1D4434);
    font-size: .8rem;
    font-weight: 600;
}
.block-html-photogallery-text .block-html-photogallery-text-card:hover .block-html-photogallery-text-caption-cta { text-decoration: underline; }

/* Nav (frecce + contatore) gestita dal componente reveal-gallery (classi .reveal-gallery-*),
   con stile di default in basso a destra. */

/* --- Pannello testo --- */
.block-html-photogallery-text .block-html-photogallery-text-content{
    background-color: var(--website-color-light);
    height: 100%;
    width: 100%;
    position: relative;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.block-html-photogallery-text .block-html-photogallery-text-content-inner {
    padding: 4rem 2rem;
}

.block-html-photogallery-text .block-html-photogallery-text-title {
    margin: 0 0 1.2rem;
    color: var(--bh-ink);
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
}
.block-html-photogallery-text .block-html-photogallery-text-body {
    color: var(--website-color-txt-body, #4D5359);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
}
.block-html-photogallery-text .block-html-photogallery-text-body p { margin: 0 0 1rem; }
.block-html-photogallery-text .block-html-photogallery-text-body p:last-child { margin-bottom: 0; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .block-html-photogallery-text .block-html-photogallery-text-inner{ grid-template-columns: 1fr; gap: 28px; }
    .block-html-photogallery-text .block-html-photogallery-text-content{ max-width: none; order: -1; }
}
