/* House Plans Video Hover Styles */

.hp-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hp-video-container video {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: cover;
    z-index: 1;
}

.hp-video-container .hp-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.hp-video-container .hp-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure swiper container can accommodate the video */
.hp-glry .swiper-slide {
    position: relative;
}

.hp-glry .swiper_bg_images {
    position: relative;
    width: 100%;
}

/* Add aspect ratio padding when video is present */
.hp-glry .swiper_bg_images:has(.hp-video-container) {
}

/* Ensure video container fills the padded parent */
.hp-glry .swiper_bg_images .hp-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Fallback for images without video */
.hp-video-container:not([data-has-video="true"]) .hp-image-overlay {
    position: static;
}
