.detail-image {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}
.project-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.feedback-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 4vw, 36px);
    width: 100%;
    margin: 0;
    padding: clamp(24px, 5vw, 56px);
    border-radius: 14px;
    background: #f2f2f2;
}
.feedback-panel img {
    width: clamp(64px, 10vw, 112px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}
.feedback-panel blockquote {
    font-size: 1.125rem;
    margin: 0 0 12px;
}
.feedback-panel figcaption {
    color: var(--webedu_gray_dark);
}
.feedback-slider {
    --f-carousel-slide-width: 100%;
    --f-carousel-spacing: 12px;
}

/* Vimeo uses an iframe to retain the WebEdu player colour. */
.fancybox__slide.has-iframe > .fancybox__content:has(iframe[src^="https://player.vimeo.com/video/"]) {
    padding: 1rem;
}

.offer-gallery { position: relative; overflow: hidden; }
.offer-gallery.detail-image { width: 100%; aspect-ratio: 16 / 10; cursor: default; }
.offer-gallery__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
}
.offer-gallery__image.is-current { opacity: 1; }
.offer-gallery:where(:not([data-offer-gallery="detail"])) .offer-gallery__image {
    transition-duration: .65s;
}

.offer-gallery__open {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
    color: white;
    text-decoration: none;
}
.offer-gallery__open span {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(255 153 0 / 95%);
    font-size: 0;
}
.offer-gallery__open span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .offer-gallery:not([data-offer-gallery="detail"]):hover .offer-gallery__open span::before {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.offer-gallery__open:focus-visible { outline: 2px solid white; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
    .offer-gallery .offer-gallery__image { transition: none; }
}
