/* ------------------------------------------------------------------
   Single project – full-bleed gallery strip (Figma 6736:348, 1920x500)
   Scope: .single-project-section-1
   ------------------------------------------------------------------ */

/* The strip opens on a 20px gutter at every width and still bleeds off the
   right edge. */
.single-project-section-1 {
    width: 100%;
    padding: 0 0 0 20px;
    overflow: hidden;
}

.single-project-section-1 .single-project-section-1-wrap {
    width: 100%;
}

.single-project-section-1 .single-project-section-1-wrap-slider {
    position: relative;
    width: 100%;
}

.single-project-section-1 .single-project-section-1-wrap-slider .swiper {
    width: 100%;
    margin: 0;
    overflow: visible;
}

/* Swiper switches to slidesPerView:2 / spaceBetween:20 from min-width 1435
   (footer-new.php), so the desktop row is a fixed 705 + 20 pitch pinned to the
   left viewport edge. The measuring box is 705 + 20 + 705 = 1430 – never
   clamped to the viewport, or Swiper divides a narrower box and the slides come
   out under 705 – and the section clips whatever runs past the right edge. */
@media screen and (min-width: 1435px) {
    .single-project-section-1 .single-project-section-1-wrap-slider .swiper {
        width: 1430px;
    }

    /* main.css caps slides at 535px !important from max-width:1435, which
       overlaps Swiper's min-width:1435 breakpoint: at exactly 1435 the slides
       render 535 wide while the wrapper is still translated on a 725 pitch,
       throwing the whole row 330px off the left edge. */
    .single-project-section-1 .single-project-section-1-wrap-slider .swiper-slide {
        width: 705px !important;
    }
}

.single-project-section-1 .single-project-section-1-wrap-slider-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 32px;
}

/* the photo trigger is a button now, so it needs the chrome reset an anchor
   never had; both are matched so the rule survives either markup */
.single-project-section-1 .single-project-section-1-wrap-slider-item a,
.single-project-section-1 .single-project-section-1-wrap-slider-item button {
    display: flex;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
}

.single-project-section-1 .single-project-section-1-wrap-slider-item img,
.single-project-section-1 .single-project-section-1-wrap-slider-item iframe {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Dragging the strip used to paint the photo with the text selection colour,
   and the picture itself came away as a drag ghost. Neither is wanted on a
   carousel that is meant to be swiped. */
.single-project-section-1 .single-project-section-1-wrap-slider {
    -webkit-user-select: none;
    user-select: none;
}

.single-project-section-1 .single-project-section-1-wrap-slider img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* The builder grabs pointer events for its own orbit control, so dragging
   across the hero rotated the trailer instead of moving the strip, and a
   wheel over it never reached the page. It is a still here; rotating it
   belongs to the media viewer. */
.single-project-section-1 .single-project-section-1-wrap-slider-item-3d-inner {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Click-to-activate overlay. While it is up the builder is inert, so a drag
   moves the strip and the wheel scrolls the page; clicking it hands pointer
   events to the builder so the trailer can be orbited in place. */
.single-project-section-1 .single-project-section-1-wrap-slider-item-3d-open {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 0 24px;
    border: 0;
    background: none;
    cursor: pointer;
}

.single-project-section-1 .single-project-section-1-wrap-slider-item-3d-open span {
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(23, 27, 28, 0.6);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s ease;
}

.single-project-section-1 .single-project-section-1-wrap-slider-item-3d-open:hover span {
    background: rgba(23, 27, 28, 0.85);
}

.single-project-section-1 .single-project-section-1-wrap-slider-item-3d.is-active .single-project-section-1-wrap-slider-item-3d-open {
    display: none;
}

.single-project-section-1 .single-project-section-1-wrap-slider-item-3d.is-active .single-project-section-1-wrap-slider-item-3d-inner {
    pointer-events: auto;
}

/* opens the viewer's own copy; stays reachable while the builder is active */
.single-project-section-1 .single-project-section-1-wrap-slider-item-3d-expand {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(23, 27, 28, 0.5);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    transition: background-color 0.2s ease;
}

.single-project-section-1 .single-project-section-1-wrap-slider-item-3d-expand:hover {
    background: rgba(23, 27, 28, 0.85);
}

/* Image counter badge – bottom left of the active slide */
.single-project-section-1 .count-image {
    position: absolute;
    left: 45px;
    bottom: 45px;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border-radius: 10px;
    background: #FAFAFA;
    color: #171B1C;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22.4px;
}

.single-project-section-1 .swiper-slide-active .count-image {
    display: flex;
}

.single-project-section-1:hover .swiper-slide-active .count-image {
    display: none;
}

.single-project-section-1 .count-image span {
    display: flex;
}

.single-project-section-1 .count-image svg {
    width: 18px;
    height: 18px;
}

/* Drag-the-trailer hint bubble – centred on the strip */
.single-project-section-1 .single-project-section-1-wrap-slider-item-info {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 45px;
    background: #FAFAFA;
    transform: translate(-50%, -50%);
}

.single-project-section-1:hover .single-project-section-1-wrap-slider-item-info {
    display: none;
}

.single-project-section-1 .single-project-section-1-wrap-slider-item-info span {
    display: flex;
}

.single-project-section-1 .single-project-section-1-wrap-slider-item-info svg {
    width: 36px;
    height: 36px;
}

/* 1434.98 rather than 1435: Swiper's breakpoints are min-width, so a max-width
   1435 query would be live at the same pixel as the desktop slider mode. */
@media screen and (max-width: 1434.98px) {
    .single-project-section-1 .single-project-section-1-wrap-slider-item {
        height: 380px;
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item img,
    .single-project-section-1 .single-project-section-1-wrap-slider-item iframe {
        height: 380px;
    }

    .single-project-section-1 .count-image {
        left: 32px;
        bottom: 32px;
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item-info {
        left: 535px;
        width: 65px;
        height: 65px;
        transform: translate(-26px, -50%);
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item-info svg {
        width: 32px;
        height: 32px;
    }
}

@media screen and (max-width: 1023px) {
    .single-project-section-1 .single-project-section-1-wrap-slider-item {
        height: 325px;
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item img,
    .single-project-section-1 .single-project-section-1-wrap-slider-item iframe {
        height: 325px;
    }

    .single-project-section-1 .count-image {
        left: 24px;
        bottom: 24px;
        border-radius: 7px;
        font-size: 14px;
    }

    .single-project-section-1 .count-image svg {
        width: 14px;
        height: 14px;
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item-info {
        left: 455px;
        width: 46px;
        height: 46px;
        transform: translate(-15px, -50%);
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item-info svg {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 767px) {
    /* main.css pins the slide at a flat 360px !important here, which is wider
       than the column once the strip takes its 10px gutters (00-base.css). With
       centeredSlides that hung the photo over both edges by an uneven amount —
       18px of gap on the left against 13px on the right. Matching the column
       lands it dead centre; !important is what the 1435px rule above already
       uses to get past the same declaration. */
    .single-project-section-1 .single-project-section-1-wrap-slider .swiper-slide {
        width: 100% !important;
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item {
        height: 245px;
        border-radius: 24px;
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item img,
    .single-project-section-1 .single-project-section-1-wrap-slider-item iframe {
        height: 245px;
    }

    .single-project-section-1 .count-image {
        gap: 5px;
        padding: 5px 10px;
        font-size: 12px;
    }

    .single-project-section-1 .count-image svg {
        width: 12px;
        height: 12px;
    }

    .single-project-section-1 .single-project-section-1-wrap-slider-item-info {
        display: none;
    }
}
