/* British Piers project page
   Loads AFTER css/broken-umbrellas.css to preserve the approved
   Broken Umbrellas two-column layout, typography and spacing.
   These refinements apply to British Piers only. */

/* Keep the film images at their real proportions inside the existing gold frame. */
.piers-page .piers-slideshow {
    position: relative;
    aspect-ratio: 1672 / 941;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(185, 149, 98, .84);
    background: #1c1b1c;
    isolation: isolate;
}

.piers-page .piers-slideshow .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .75s ease, visibility 0s linear .75s;
}

.piers-page .piers-slideshow .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .75s ease, visibility 0s;
}

.piers-page .piers-slideshow .hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
}

/* Introduction starts level with the slideshow frame, as requested for
   the final Broken Umbrellas layout. The existing font sizing is inherited. */
.piers-page .piers-feature { align-items: start; }
.piers-page .piers-opening { align-self: start; }
.piers-page .piers-opening p:first-child { margin-top: 0; }

/* Place the controls over the photograph, without changing the site's styling. */
.piers-page .piers-slideshow .hero-controls {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 12px;
}

/* Accommodate the established mobile stacking behaviour. */
@media (max-width: 760px) {
    .piers-page .piers-slideshow { width: 100%; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .piers-page .piers-slideshow .hero-slide,
    .piers-page .piers-slideshow .hero-slide.is-active {
        transition: none;
    }
}
