/* =============================================
   BLC Gallery — Industrial Editorial
   ============================================= */

/* --- Hide breadcrumb --- */
.page-gallery .breadcrumb-wrapper,
.page-gallery .breadcrumb {
    display: none;
}

/* --- Full-width break-out --- */
.blc-gallery-page {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

/* --- Hero --- */
.blc-gal-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
}

.blc-gal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.75) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.blc-gal-hero-content {
    text-align: center;
    padding: 40px 20px;
    animation: blcGalFadeIn 1s ease both;
}

.blc-gal-hero-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #cd0516;
    margin-bottom: 20px;
}

.blc-gal-hero-title {
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 16px;
}

.blc-gal-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.blc-gal-hero-scroll {
    margin-top: 50px;
    animation: blcGalBounce 2s ease-in-out infinite;
}

.blc-gal-hero-scroll .material-symbols-outlined {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes blcGalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blcGalBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
#wrapper {
    padding: 0 !important;
}
/* --- Header (fallback sin hero) --- */
.blc-gallery-header {
    padding: 80px 0 60px;
    text-align: center;
}

.blc-gallery-label {
    color: #cd0516;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 12px;
}

.blc-gallery-page-title {
    color: #141414;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.blc-gallery-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #cd0516;
}

.blc-gallery-page-desc {
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Grid --- */
.blc-gallery-grid {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 32px 4px;
    background: #ffffff;
}

.blc-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    display: block;
}

.blc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blc-gallery-item:hover img {
    transform: scale(1.08);
}

.blc-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.blc-gallery-item-overlay .material-symbols-outlined {
    color: #fff;
    font-size: 36px;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.35s ease;
}

.blc-gallery-item:hover .blc-gallery-item-overlay {
    background: rgba(205, 5, 22, 0.25);
}

.blc-gallery-item:hover .blc-gallery-item-overlay .material-symbols-outlined {
    opacity: 1;
    transform: scale(1);
}

/* --- Empty state --- */
.blc-gallery-empty {
    text-align: center;
    color: #999;
    font-size: 18px;
    padding: 80px 0;
    font-style: italic;
}

/* --- Lightbox --- */
.blc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blc-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.blc-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blc-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
}

.blc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s ease;
    padding: 0;
}

.blc-lightbox-close:hover {
    color: #cd0516;
}

.blc-lightbox-prev,
.blc-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    padding: 12px;
    transition: color 0.3s ease;
}

.blc-lightbox-prev:hover,
.blc-lightbox-next:hover {
    color: #cd0516;
}

.blc-lightbox-prev {
    left: 16px;
}

.blc-lightbox-next {
    right: 16px;
}

.blc-lightbox-prev .material-symbols-outlined,
.blc-lightbox-next .material-symbols-outlined {
    font-size: 48px;
}

.blc-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .blc-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blc-gal-hero-title {
        font-size: 44px;
    }

    .blc-gal-hero {
        min-height: 55vh;
    }
}

@media (max-width: 767px) {
    .blc-gal-hero-title {
        font-size: 32px;
    }

    .blc-gal-hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .blc-gal-hero {
        min-height: 50vh;
        background-attachment: scroll;
    }
}

@media (max-width: 575px) {
    .blc-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blc-gal-hero-title {
        font-size: 26px;
    }

    .blc-gal-hero {
        min-height: 45vh;
    }

    .blc-lightbox-prev .material-symbols-outlined,
    .blc-lightbox-next .material-symbols-outlined {
        font-size: 32px;
    }
}
