/* Recovery overrides for the Playgolf archive.
   The pgw-slider / flip-box JavaScript was never captured, so the markup is
   rendered statically: first hero slide visible, flip-box fronts visible,
   backs revealed on hover. */

/* --- hero slider (pgw-slider) ------------------------------------------- */
.pgw-slider-wrap .swiper-container {
    position: relative;
    height: 650px;
    overflow: hidden;
    background: #111;
}
.pgw-slider-wrap .swiper-wrapper { position: static; }
.pgw-slider-wrap .swiper-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
}
.pgw-slider-wrap .swiper-slide:first-child {
    opacity: 1;
    visibility: visible;
}
.pgw-slider-wrap .swiper-slide .image-bg {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center center !important;
}
.pgw-slider-wrap .swiper-slide .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}
.pgw-slider-wrap .swiper-slide .content h2 {
    color: #fff;
    font-size: 64px;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
}
.pgw-slider-wrap .swiper-pagination,
.pgw-slider-wrap .slider-prev,
.pgw-slider-wrap .slider-next { display: none !important; }

/* --- flip boxes ---------------------------------------------------------- */
.pgw-flip-box {
    position: relative;
    perspective: 1200px;
}
.pgw-flip-box .flip-box-front,
.pgw-flip-box .flip-box-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform .6s ease;
}
.pgw-flip-box .flip-box-front {
    position: relative;
    transform: rotateY(0deg);
}
.pgw-flip-box .flip-box-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
}
.pgw-flip-box:hover .flip-box-front { transform: rotateY(-180deg); }
.pgw-flip-box:hover .flip-box-back  { transform: rotateY(0deg); }

/* keep the tile content centred and legible */
.pgw-flip-box .flip-box-front,
.pgw-flip-box .flip-box-back {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pgw-flip-box .inner { text-align: center; color: #fff; padding: 20px; }

/* the slider JS removes this overlay after init; without it the hero stays grey */
.pgw-slider-loading { display: none !important; }

/* back faces: keep them invisible until hover (backface-visibility alone is
   flattened by an ancestor transform in this theme) */
.pgw-flip-box .flip-box-back { opacity: 0; }
.pgw-flip-box:hover .flip-box-back { opacity: 1; }
.pgw-flip-box:hover .flip-box-front { opacity: 0; }

/* Salient fades sections in with JS; without it they stay at opacity:0 */
.wpb_animate_when_almost_visible,
.wpb_animate_when_almost_visible.wpb_start_animation,
.has-animation .wpb_wrapper { opacity: 1 !important; }

/* columns carrying the fade-in animation start at opacity:0 and are revealed
   by Salient's JS, which this archive does not have */
.has-animation { opacity: 1 !important; }
