/**

 * Theme Name:     Poldekor
 * Author:         Rankhouse
 * Template:       kadence
 * Text Domain:	   poldekor
 * Description:    Motyw zbudowany na potrzeby sklepu Poldekor
 */

.hero-section__image-wrapper {
    position: relative;
}

.hero-section__image-wrapper .elementor-widget-text-editor {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-45%, -50%);
}

.hero-section__image-wrapper img {
    transition: transform 0.3s ease;
}

/*.hero-section:has(.hero-section__image-wrapper:hover)*/
/*.hero-section__image-wrapper {*/
/*    transform: scale(0.9);*/
/*}*/

/*.hero-section__image-wrapper:hover {*/
/*    transform: scale(1.1) !important;*/
/*    z-index: 2;*/
/*	cursor: pointer*/
/*}*/

.hero-section__image-wrapper {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hero-section__image-wrapper:nth-child(2) {
    transform: scale(1.1);
    z-index: 2;
}

.hero-section:has(.hero-section__image-wrapper:hover)
.hero-section__image-wrapper {
    transform: scale(0.9);
}

.hero-section__image-wrapper:hover {
    transform: scale(1.1) !important;
    z-index: 3;
    cursor: pointer;
}

.hero-section:not(:has(.hero-section__image-wrapper:hover))
.hero-section__image-wrapper:nth-child(2) {
    transform: scale(1.1);
}

.hero-section .elementor-background-video-container video {
    min-width: 105%;
    min-height: 105%;
}

.hero-section {
    height: 100vh !important;
}

.download-pdf a {
    background: linear-gradient(90deg, #FFFFFF 0%, #E3C8AA 100%);
    -webkit-background-clip: text; /* Chrome, Safari, Edge */
    -webkit-text-fill-color: transparent;
}

.flipbook-shortcode {
    position:absolute !important;
    height: 100vh;
    top: 0;
    display: none;
}

.flipbook-shortcode .elementor-shortcode {
    height: 100vh;
}
.flipbook-shortcode .elementor-shortcode > div:first-child {
    height: 100vh !important;
}

.dialog-widget-content {
    background-color: transparent !important;
}

.dialog-message {
    width: fit-content !important;
}

.contact-form .elementor-button {
    background: linear-gradient(
            90deg,
            #2C2B1B 0%,
            #7B6D36 100%
    );
}

.flipbook-close {
    display: none;
}

@media screen and (max-width: 768px) {
    .hero-section .elementor-background-video-container {
        display: block !important;
    }


    .hero-section {
        height: auto !important;
    }

    .hero-section__image-wrapper {
        transform: scale(1);
        display: block !important;
    }

    .hero-section__image-wrapper:nth-child(2) {
        transform: scale(1);
        z-index: 2;
    }

    .hero-section:has(.hero-section__image-wrapper:hover)
    .hero-section__image-wrapper {
        transform: scale(1);
    }

    .hero-section__image-wrapper:hover {
        transform: scale(1) !important;
    }

    .hero-section:not(:has(.hero-section__image-wrapper:hover))
    .hero-section__image-wrapper:nth-child(2) {
        transform: scale(1);
    }
}

@media screen and (min-width: 1441px) {
    .flipbook-bookLayer {
        width: 70% !important;
        margin: 0 auto;
    }
}

.flipbook-overlay {
    background: rgba(0,0,0,.71)!important;
}
