/* GalerÃ­as dentro de entradas/proyectos */

.single-post main {
        padding: 12vh 0;
}


.single-post h1 {
        margin: 0 0 28px;
    font-size: 4vw;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.single-post .entry-content {
        margin-top: 28px;
}

/* =========================================================
   SINGLE POST - GALERÃA
========================================================= */

.single-post .wp-block-gallery {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;

    gap: 28px !important;

    margin: 8vh auto;

    width: 100%;
}


/* Cada miniatura */

.single-post .wp-block-gallery > .wp-block-image {
    position: relative;

    flex: 0 0 calc((100% - 84px) / 4);

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    overflow: hidden;

    cursor: pointer;

    background: #f3f3f3;
}


/* Imagen */

.single-post .wp-block-gallery > .wp-block-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    transform: scale(1);

    transition:
        transform .7s cubic-bezier(.2, .7, .2, 1),
        filter .4s ease;
}


/* Overlay sutil */

.single-post .wp-block-gallery > .wp-block-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(193, 32, 82, 0);

    pointer-events: none;

    transition: background .4s ease;
}


/* Hover */

.single-post .wp-block-gallery > .wp-block-image:hover img {
    transform: scale(1.045);

    filter: brightness(.92);
}

.single-post .wp-block-gallery > .wp-block-image:hover::after {
    
}

/* =========================================================
   LIGHTBOX
========================================================= */

.ff-lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 100px;

    background: rgba(10, 10, 10, .94);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


.ff-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}


/* Evita scroll detrÃ¡s */

body.ff-lightbox-open {
    overflow: hidden;
}


/* Imagen */

.ff-lightbox__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}


.ff-lightbox__image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(100vh - 120px);

    object-fit: contain;

    opacity: 1;

    transform: scale(1);

    transition:
        opacity .3s ease,
        transform .4s cubic-bezier(.2, .7, .2, 1);
}


/* =========================================================
   CERRAR
========================================================= */

.ff-lightbox__close {
    position: absolute;

    top: 25px;
    right: 35px;

    z-index: 2;

    padding: 0;

    border: 0;
    background: transparent;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 46px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    transition:
        opacity .25s ease,
        transform .25s ease;
}


.ff-lightbox__close:hover {
    opacity: .65;
    transform: rotate(90deg);
}


/* =========================================================
   FLECHAS
========================================================= */

.ff-lightbox__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background .25s ease,
        border-color .25s ease;
}

.ff-lightbox__arrow span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 200;
    line-height: 1;

    /* correcciÃ³n Ã³ptica */
    transform: translateY(-3px);
}

.ff-lightbox__arrow:hover {
    background: #c12052;
    border-color: #c12052;
}

.ff-lightbox__arrow--prev {
    left: 30px;
}

.ff-lightbox__arrow--next {
    right: 30px;
}

/* =========================================================
   VOLVER A PROYECTOS
========================================================= */

.ff-single-project__back {
    margin-top: 7vh;
    margin-bottom: 8vh;
}


.ff-single-project__back-link {
    display: inline-flex;
    align-items: center;

    gap: 18px;

    color: #181818;

    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    text-decoration: none;
}


/* Flecha */

.ff-single-project__back-arrow {
    position: relative;

    display: block;

    width: 66px;
    height: 18px;

    transition:
        transform .35s cubic-bezier(.2, .7, .2, 1);
}


/* Línea */

.ff-single-project__back-arrow::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 66px;
    height: 1px;

    background: currentColor;

    transform: translateY(-50%);
}


/* Punta de flecha */

.ff-single-project__back-arrow::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 1px;

    width: 12px;
    height: 12px;

    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;

    transform:
        translateY(-50%)
        rotate(45deg);
}


/* Hover */

.ff-single-project__back-link:hover
.ff-single-project__back-arrow {
    transform: translateX(-7px);
}


.ff-single-project__body ul,
.ff-single-project__body ol {
    margin-top: 20px;
    margin-bottom: 40px;
    padding-left: 30px;
}

.ff-single-project__body li {
    margin-bottom: 7px;
}

.ff-single-project__body p {
    margin-bottom: 24px;
    line-height: 1.8;
}

