/* ============================================
   PROPERTY VIDEO SECTION
   ============================================ */

.property-video-section {
    padding: 60px 0;
    background-color: var(--colore-grigio-chiaro);
}

.property-video-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.property-video-section h2 {
    font-family: var(--font-primario), Sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--colore-primario-blu);
    margin-bottom: 30px;
    text-align: center;
}

.property-video-wrap {
    position: relative;
    /* Removed background-color and box-shadow for cleaner integration */
}

.property-video-wrap iframe,
.property-video-wrap video {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 12px;
}

/* Video poster image cover styling */
.property-video-wrap video[poster] {
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fullscreen video styling - use contain instead of cover */
.property-video-wrap video:fullscreen {
    object-fit: contain !important;
    background-size: contain !important;
}

/* Also handle webkit fullscreen prefix */
.property-video-wrap video:-webkit-full-screen {
    object-fit: contain !important;
    background-size: contain !important;
}

/* And moz fullscreen prefix */
.property-video-wrap video:-moz-full-screen {
    object-fit: contain !important;
    background-size: contain !important;
}

/* Video gallery grid for multiple videos */
.property-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2 columns layout for desktop (992px and up) */
@media (min-width: 992px) {
    .property-video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .property-video-grid .property-video-wrap {
        max-width: none;
    }
    
    .property-video-grid .property-video-wrap iframe,
    .property-video-grid .property-video-wrap video {
        height: 400px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .property-video-section {
        padding: 40px 0;
    }

    .property-video-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .property-video-wrap iframe,
    .property-video-wrap video {
        height: 250px;
    }
}

/* Video title margin when integrated in gallery section */
.property-gallery-section h2:last-of-type {
    margin-top: 30px;
}

/* Remove padding and background from block-wrap in video section */
.property-gallery-section .block-wrap {
    padding: 0;
    background: none;
    border-top: unset !important;
}