/*
 * ElvisArt – SP Simple Portfolio Featherlight enhancement
 * No PHP/template override is required.
 */

/* Eleva 1.0.2 renders this block below the thumbnails. Keep the data in the
   DOM for JavaScript, but hide it visually. */
#sp-simpleportfolio.sp-simpleportfolio-view-items .sp-simpleportfolio-info {
    display: none !important;
}

#sp-simpleportfolio.sp-simpleportfolio-view-items .sp-simpleportfolio-overlay-wrapper a {
    cursor: zoom-in;
}

.featherlight.simpleportfolio-bucher {
    background: rgba(0, 0, 0, 0.95) !important;
    transition: none;
}

.featherlight.simpleportfolio-bucher .featherlight-content {
    max-height: 98vh;
    overflow: auto;
    padding: 0;
    margin: 50px 0 0;
    background: none;
    text-align: center;
    vertical-align: top;
}

.featherlight.simpleportfolio-bucher .featherlight-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featherlight.simpleportfolio-bucher .featherlight-image {
    max-height: 80vh;
    max-width: calc(100vw - 40px);
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.featherlight.simpleportfolio-bucher .featherlight-title,
.featherlight.simpleportfolio-bucher .featherlight-description {
    box-sizing: border-box;
    width: 100%;
    max-width: min(900px, calc(100vw - 40px));
    text-align: center;
    margin: 0 auto;
    color: #fff;
}

.featherlight.simpleportfolio-bucher .featherlight-title {
    font-weight: bold;
    margin-top: 8px;
}

.featherlight.simpleportfolio-bucher .featherlight-description p {
    margin: 0;
}

.featherlight.simpleportfolio-bucher .featherlight-close-icon {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10001;
    width: 34px;
    height: 34px;
    padding: 2px;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    line-height: 30px;
}

.featherlight.simpleportfolio-bucher .featherlight-close-icon:hover line,
.featherlight.simpleportfolio-bucher .featherlight-close-icon:focus line {
    stroke: #fff;
}

.featherlight.simpleportfolio-bucher .gallery-nav {
    position: fixed;
    top: 50%;
    z-index: 10001;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.featherlight.simpleportfolio-bucher .gallery-nav.prev {
    left: 10px;
}

.featherlight.simpleportfolio-bucher .gallery-nav.next {
    right: 10px;
}

.featherlight.simpleportfolio-bucher .gallery-nav:hover svg polyline,
.featherlight.simpleportfolio-bucher .gallery-nav:focus svg polyline {
    stroke: #fff;
}

.featherlight.simpleportfolio-bucher.is-loading .featherlight-image {
    opacity: .55;
}

@media (max-width: 767px) {
    .featherlight.simpleportfolio-bucher .featherlight-content {
        margin-top: 45px;
    }

    .featherlight.simpleportfolio-bucher .featherlight-image {
        max-height: 78vh;
        max-width: calc(100vw - 24px);
    }

    .featherlight.simpleportfolio-bucher .gallery-nav.prev {
        left: 2px;
    }

    .featherlight.simpleportfolio-bucher .gallery-nav.next {
        right: 2px;
    }
}
