/* =============================================
   SHOWCASE v2 — masonry на 40 фото + лайтбокс
   (грузится после holst_home.css, старые
   .hl-showcase-grid/-tile больше не используются)
   ============================================= */

.hl-sc-wrap {
    position: relative;
}
.hl-sc-wrap.is-collapsed {
    max-height: 780px;
    overflow: hidden;
}
.hl-sc-masonry {
    -webkit-column-count: 4;
    column-count: 4;
    -webkit-column-gap: 14px;
    column-gap: 14px;
}
.hl-sc-item {
    display: block;
    margin: 0 0 14px;
    border-radius: 16px;
    overflow: hidden;
    background: #e9ddd5;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
    cursor: zoom-in;
}
.hl-sc-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.hl-sc-item:hover img {
    transform: scale(1.04);
}

/* Затухание внизу свёрнутой галереи */
.hl-sc-fade {
    display: none;
}
.hl-sc-wrap.is-collapsed .hl-sc-fade {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 92%);
    pointer-events: none;
}

.hl-sc-actions {
    text-align: center;
    margin-top: 24px;
}
.hl-sc-toggle {
    display: inline-block;
    border: 1.5px solid var(--hl-text, #363636);
    background: transparent;
    color: var(--hl-text, #363636);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.hl-sc-toggle:hover {
    background: var(--hl-text, #363636);
    color: #fff;
}

/* Лайтбокс */
.hl-sc-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,18,16,0.92);
    align-items: center;
    justify-content: center;
}
.hl-sc-lightbox.is-open {
    display: flex;
}
.hl-sc-lb-stage {
    max-width: calc(100% - 140px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hl-sc-lb-stage img {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hl-sc-lb-close,
.hl-sc-lb-nav {
    position: fixed;
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    line-height: 48px;
    text-align: center;
    padding: 0;
    transition: background 0.2s ease;
}
.hl-sc-lb-close:hover,
.hl-sc-lb-nav:hover {
    background: rgba(255,255,255,0.28);
}
.hl-sc-lb-close {
    top: 18px;
    right: 18px;
    font-size: 30px;
}
.hl-sc-lb-nav {
    top: 50%;
    margin-top: -24px;
}
.hl-sc-lb-prev { left: 18px; }
.hl-sc-lb-next { right: 18px; }

/* Адаптив */
@media (max-width: 1200px) {
    .hl-sc-masonry { -webkit-column-count: 3; column-count: 3; }
}
@media (max-width: 768px) {
    .hl-sc-masonry { -webkit-column-count: 2; column-count: 2; -webkit-column-gap: 10px; column-gap: 10px; }
    .hl-sc-item { margin-bottom: 10px; border-radius: 12px; }
    .hl-sc-wrap.is-collapsed { max-height: 640px; }
    .hl-sc-lb-stage { max-width: 100%; }
    .hl-sc-lb-nav {
        top: auto;
        bottom: 20px;
        margin-top: 0;
    }
    .hl-sc-lb-prev { left: calc(50% - 60px); }
    .hl-sc-lb-next { right: calc(50% - 60px); }
}
