/* Galería Nuestras Cestas — masonry por columnas sin huecos */

.nuestras-cestas .blog_entry-header-inner {
    overflow: visible;
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}

.nuestras-cestas-gallery__hint {
    margin: 0 0 2rem;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

.nuestras-cestas-gallery__grid {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.nuestras-cestas-gallery__column {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nuestras-cestas-gallery__item {
    display: block;
    width: 100%;
    height: 240px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #ececec;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nuestras-cestas-gallery__item--short {
    height: 180px;
}

.nuestras-cestas-gallery__item--tall {
    height: 320px;
}

.nuestras-cestas-gallery__item--grand {
    height: 400px;
}

.nuestras-cestas-gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.nuestras-cestas-gallery__item:hover,
.nuestras-cestas-gallery__item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    outline: none;
}

.nuestras-cestas-gallery__item:hover::after,
.nuestras-cestas-gallery__item:focus-visible::after {
    background: rgba(0, 0, 0, 0.1);
}

.nuestras-cestas-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.nuestras-cestas-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nuestras-cestas-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.nuestras-cestas-lightbox__dialog {
    position: relative;
    width: min(96vw, 1200px);
    height: min(92vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    box-sizing: border-box;
}

.nuestras-cestas-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.nuestras-cestas-lightbox__close,
.nuestras-cestas-lightbox__nav {
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55);
    color: transparent;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 0;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.nuestras-cestas-lightbox__close::before,
.nuestras-cestas-lightbox__nav::before {
    font-family: FontAwesome;
    line-height: 1;
    color: #fff;
    display: block;
}

.nuestras-cestas-lightbox__close::before {
    content: '\00d7';
    font-size: 1.75rem;
    font-weight: 300;
}

.nuestras-cestas-lightbox__nav--prev::before {
    content: '\f104';
    font-size: 1.25rem;
}

.nuestras-cestas-lightbox__nav--next::before {
    content: '\f105';
    font-size: 1.25rem;
}

.nuestras-cestas-lightbox__close:hover,
.nuestras-cestas-lightbox__nav:hover,
.nuestras-cestas-lightbox__close:focus-visible,
.nuestras-cestas-lightbox__nav:focus-visible {
    background: rgba(227, 24, 55, 0.85);
    outline: none;
}

.nuestras-cestas-lightbox__close {
    top: 16px;
    right: 16px;
}

.nuestras-cestas-lightbox__nav--prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.nuestras-cestas-lightbox__nav--next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.nuestras-cestas-lightbox__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 999px;
}

body.nuestras-cestas-lightbox-open {
    overflow: hidden;
}

@media only screen and (max-width: 991px) {
    .nuestras-cestas-gallery__grid {
        gap: 10px;
    }

    .nuestras-cestas-gallery__column {
        gap: 10px;
    }

    .nuestras-cestas-gallery__item {
        height: 220px;
    }

    .nuestras-cestas-gallery__item--short {
        height: 165px;
    }

    .nuestras-cestas-gallery__item--tall {
        height: 290px;
    }

    .nuestras-cestas-gallery__item--grand {
        height: 360px;
    }
}

@media only screen and (max-width: 599px) {
    .nuestras-cestas-gallery__grid {
        gap: 10px;
    }

    .nuestras-cestas-gallery__column {
        gap: 10px;
    }

    .nuestras-cestas-gallery__item {
        height: 200px;
    }

    .nuestras-cestas-gallery__item--short {
        height: 150px;
    }

    .nuestras-cestas-gallery__item--tall {
        height: 260px;
    }

    .nuestras-cestas-gallery__item--grand {
        height: 320px;
    }

    .nuestras-cestas-lightbox__dialog {
        padding: 40px 12px;
    }

    .nuestras-cestas-lightbox__nav {
        width: 38px;
        height: 38px;
    }

    .nuestras-cestas-lightbox__nav::before {
        font-size: 1.1rem;
    }

    .nuestras-cestas-lightbox__nav--prev {
        left: 4px;
    }

    .nuestras-cestas-lightbox__nav--next {
        right: 4px;
    }
}
