/* ==========================================================================
   WIRTUALNY SPACER 360°
   Bazuje na zmiennych i klasach z motywu (pv-custom.css / main-custom.css)
   ========================================================================== */

.vt-hero .page-hero-bg img {
    object-position: top;
}

@media (min-width: 712px) and (max-width: 1024px) {
    .vt-hero {
        min-height: 45vh;
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

.vt-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* ==========================================================================
   SEKCJA: GALERIA
   ========================================================================== */
.vt-gallery {
    padding: clamp(60px, 8vw, 100px) 0;
    background-color: #ffffff;
}

.vt-gallery-header {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.vt-gallery-header h2 {
    margin-bottom: 16px;
}

.vt-gallery-header p {
    font-size: clamp(16px, 1.5vw, 18px);
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.vt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

.vt-gallery-item:last-child img {
        object-position: center 75%;
}

.vt-gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vt-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.vt-gallery-item img {
    width: 100%;
    height: clamp(220px, 20vw, 320px);
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.vt-gallery-item:hover img {
    transform: scale(1.05);
}

.vt-gallery-item figcaption {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .vt-gallery-grid {
        grid-template-columns: 1fr;
    }

    .vt-gallery-item:last-child img {
        object-position: center 75%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .vt-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vt-gallery-item:last-child {
        grid-column: span 2;
        justify-self: center;
        max-width: 60%;
    }
    .vt-gallery-item:last-child img {
        aspect-ratio: 16 / 9;
        height: auto;
        object-fit: cover;
        object-position: center 75%;
    }
}

/* ==========================================================================
   SEKCJA: SPACER 360°
   ========================================================================== */
.vt-spacer {
    padding: clamp(60px, 8vw, 100px) 0;
    padding-bottom: clamp(80px, 10vw, 120px);
    background-color: #f9f9f9;
    scroll-margin-top: 80px;
}

.vt-spacer-wide {
    max-width: 1440px;
    width: 92%;
    margin: 0 auto;
}

/* Banner instrukcji - zlepiony z iframe */
.vt-tour-banner {
    background-color: #306EB5;
    color: #ffffff;
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2vw, 24px);
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 12px 12px 0 0;
}

.vt-banner-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.vt-banner-icon svg {
    fill: #ffffff;
}

.vt-banner-text h4 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.vt-banner-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Iframe wrapper - zlepiony z bannerem */
.vt-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 700px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background-color: #1e293b;
}

.vt-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .vt-spacer {
        padding: clamp(40px, 6vw, 60px) 0 0 0;
        margin-bottom: 50px;
    }

    .vt-spacer-wide {
        width: 100vw;
        max-width: 100vw;
        padding: 0;
        margin: 0;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .vt-tour-banner {
        border-radius: 0;
        padding: 10px 12px;
        gap: 10px;
    }

    .vt-banner-icon svg {
        width: 20px;
        height: 20px;
    }

    .vt-banner-text h4 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .vt-banner-text p {
        font-size: 12px;
        line-height: 1.4;
    }

    .vt-iframe-wrapper {
        border-radius: 0;
        height: 60vh;
        min-height: 500px;
        width: 100vw;
        max-width: 100vw;
        position: relative;
    }

    .vt-iframe-wrapper iframe {
        width: 100%;
        height: 100%;
    }
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .vt-spacer {
        padding-bottom: clamp(60px, 8vw, 80px);
    }
}