/* ==========================================================================
   pic-show.css
   The "conveyor belt" picture show - a Swiper-based slider showing the
   current picture large and centered with the neighboring pictures
   peeking in on either side, left/right arrows to move one at a time
   (no autoplay), a close (X) button top-right, and a title/price
   caption bar at the bottom. Two ways it's used (both driven by
   js/pic-show.js from plain markup, no per-page glue code needed):

   - .pic-show--modal   full-screen overlay, opened when a portfolio
                        thumbnail is clicked
   - .pic-show--inline  embedded directly in the page and already
                        showing on load (the homepage picture show)
   ========================================================================== */

.pic-show-noscroll {
    overflow: hidden;
}

.pic-show {
    position: relative;
}

.pic-show.is-closed {
    display: none !important;
}

/* ---- modal variant: full-screen overlay -------------------------------- */
.pic-show--modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 0 100px;
}

/* ---- inline variant: embedded in the page flow -------------------------- */
.pic-show--inline {
    background: var(--art-dark, #2a2a2a);
    border-radius: 15px;
    padding: 50px 0 80px;
    overflow: hidden;
}

/* ---- close (X) button, top-right, both variants -------------------------- */
.pic-show-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 20;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pic-show-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ---- the Swiper slider itself -------------------------------------------- */
.pic-show-swiper {
    width: 100%;
    overflow: hidden;
}

.pic-show-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.pic-show-swiper .swiper-slide-active {
    opacity: 1;
}

.pic-show-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 62vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    /* Keep the picture crisp through Swiper's hardware-accelerated
       transform transitions rather than a blurry filter/scale. */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pic-show--inline .pic-show-swiper .swiper-slide img {
    max-height: 46vh;
}

/* ---- left / right arrows -------------------------------------------------- */
.pic-show-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pic-show-arrow:hover {
    background: var(--art-accent, #e5bb89);
    color: #2a2a2a;
    border-color: var(--art-accent, #e5bb89);
}

.pic-show-arrow.swiper-button-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.pic-show-arrow--prev {
    left: 16px;
}

.pic-show-arrow--next {
    right: 16px;
}

/* ---- caption bar: title + price ------------------------------------------- */
.pic-show-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 30px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
    text-align: center;
}

.pic-show-caption-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pic-show-caption-price {
    font-size: 16px;
    color: var(--art-accent, #e5bb89);
    font-weight: 700;
    white-space: nowrap;
}

.pic-show-caption-price:empty,
.pic-show-caption-title:empty {
    display: none;
}

/* ---- "Buy" button inside the picture-show (modal/portfolio only,
   never shown in inline/homepage mode) -------------------------------- */
.pic-show-buy-form {
    position: absolute;
    left: 50%;
    bottom: 62px;
    transform: translateX(-50%);
    z-index: 16;
}

.pic-show-buy-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 10px;
    border: 1px solid var(--art-accent, #e5bb89);
    background: var(--art-accent, #e5bb89);
    color: #2a2a2a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.pic-show-buy-btn:hover {
    background: transparent;
    color: #fff;
}

.pic-show-buy-form.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .pic-show--modal { padding: 60px 0 90px; }
    .pic-show-arrow { width: 40px; height: 40px; font-size: 16px; }
    .pic-show-arrow--prev { left: 6px; }
    .pic-show-arrow--next { right: 6px; }
    .pic-show-caption {
        padding: 12px 16px;
        flex-direction: column;
        gap: 2px;
    }
}
