:root{
    --main-transition:1000ms ;
}
.site-card__parent.open__false .site-card__inner {
    transform: scale(0.6) rotate(90deg);
    height: calc(100vw + (100vw * 0.6) - 60px);
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.site-card__parent.open__true .site-card__inner {
    transform-origin: center !important;
    max-height: unset !important;
    position: relative !important;
}

.site-card__parent.open__false {
    /* make element in center */
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.site-card__inner {
    transition: transform 2s ease, margin var(--main-transition) linear;
}


@media only screen and (min-width: 1024px) {
    .site-card__parent.open__false .site-card__inner {
        height: 1400px;
        width: 915px;
    }
}

.site-card__back-img {
    transform: scale(0.6) rotate(90deg);
    height: calc(100vw + (100vw * 0.6) - 60px);
    width: 100%;
    position: absolute;
    z-index: 9999;
    transition: all var(--main-transition) linear;
    display: flex;
    justify-content: center;
    align-items: center;

}

@media only screen and (min-width: 1024px) {
    .site-card__back-img {
        height: 1400px;
        width: 915px;
    }
}

.site-card__back-img.turn {
    transform: scale(0.6) rotate(90deg) rotateX(90deg);
    perspective: 800px;
    transform-origin: 50% 50%;
}

.site-card__back-img img {
    width: 100%;
    height: 100%;
}

.main__site {
    height: calc(100vw + (100vw * 0.6));
    overflow: hidden;
    display: none;
    background-color: white;
}

.main__site.active {
    display: block;
}



.site-card__front-image {
    transform: scale(0.6) rotate(90deg) rotateX(90deg);
    height: calc(100vw + (100vw * 0.6) - 60px);
    width: 100%;
    position: absolute;
    z-index: 9999;
    transition: all var(--main-transition) linear;
}

.site-card__front-image img {
    max-width: 100%;
    height: 100%;
}

.site-card__front-image.turn {
    transform: scale(0.6) rotate(90deg) rotateX(0);
    perspective: 800px;
}

@media only screen and (min-width:1024px) {
    .site-card__front-image {
        height: 1400px;
        width: 915px;
    }
}

/* Pattern */
.site-card__pattern-image {
    transform: scale(0.6) rotate(90deg) rotateX(90deg);
    height: calc(100vw + (100vw * 0.6) - 60px);
    width: 100%;
    position: absolute;
    z-index: 5;
    transition: all var(--main-transition) linear;
}

.site-card__pattern-image img {
    max-width: 100%;
    height: 100%;
    width: 100%;
}

.site-card__pattern-image.turn {
    transform: scale(0.6) rotate(90deg) rotateX(0);
    perspective: 800px;
}

@media only screen and (min-width:1024px) {
    .site-card__pattern-image {
        height: 1400px;
        width: 915px;
    }
}

.site-card__top-pocket {
    transform: scale(0.6) rotate(90deg) rotateX(90deg);
    height: calc(100vw + (100vw * 0.6) - 60px);
    width: 100%;
    position: absolute;
    z-index: 9999;
    transition: transform var(--main-transition) linear;
    cursor: pointer;
    display: flex;
    justify-content: end;
}

.site-card__top-pocket.turn {
    transform: scale(0.6) rotate(90deg) rotateX(0);
    perspective: 800px;

}

@media only screen and (min-width:1024px) {
    .site-card__top-pocket {
        height: 1400px;
        width: 915px;
    }
}

.site-card__top-image img {
    height: 100%;
    width: 100%;
    transform-origin: 0% 0%;
    transition: all var(--main-transition);
    perspective: 800px;
}

.site-card__top-pocket.open img {
    transform: rotateY(180deg);
}


.site-card__back-img_text {
    position: absolute;
    transform: rotate(-90deg);
    font-size: calc(18px + (18px * .6));
    color: white;
    font-family: 'nastaliq';
}


@media only screen and (min-width:1024px) {
    .site-card__back-img_text {
        position: absolute;
        transform: rotate(-90deg);
        font-size: calc(36px + (36px * .6));
    }
}


.site-card__mohr-image {
    position: relative;
    display:flex;
    justify-content: center;
    align-items: center;
   
}

.site-card__mohr-image img  {
    opacity: 0;
    transition: all 100ms;
    transform: scale(1.3);
}

.site-card__mohr-image.active img {
    opacity: 1;
    transform: scale(1) rotate(-90deg);
}

.site-card__mohr-image .groom-bride-name{
    content: var(--couple-name);
    position: absolute;
    transform: rotate(-90deg) translateY(-22px);
    font-size: 16px;
    z-index: 99;
    text-shadow: var(--mohr-text-shadow) 1px 1px 0;
    color: var(--mohr-text-shadow);
    font-family: "clicker script", cursive;
    letter-spacing: 2px;
}

.groom-bride-name .first-char-separator{
    font-size: 18px;
}

.groom-bride-name{
    display: flex;
    align-items: center;
    justify-content: center;
}

.groom-first-char, .bride-first-char{
    font-weight: bold;
}


@media only screen and (min-width:768px) {
    .site-card__mohr-image .groom-bride-name{
        transform: rotate(-90deg) translateY(-45px);
        font-size: 36px;
        letter-spacing: 4px;
    }

    .groom-bride-name .first-char-separator{
        font-size: 32px;
    }
}


@media only screen and (min-width:768px) {
    .site-card__mohr-image .groom-bride-name{
        transform: rotate(-90deg) translateY(-55px);
    }
}



.mohr {
    width: 80px;
    height: auto;
    margin-left: -50px;
    position: relative;
    transform: rotate(-90deg);
}


@media only screen and (min-width:768px) {
    .mohr {
        width: 150px;
        margin-left: -100px;
    }
}

@media only screen and (min-width:1024px) {
    .mohr {
        width: 180px;
        margin-left: -120px;
    }
}



.site-card__top-pocket_holder {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    height: 100%;
    transform: rotateY(0);
    transition: all var(--main-transition) linear;
    transform-origin: 0% 0%;
    perspective: 800px;
}

.site-card__top-pocket_holder.open {
    transform: rotateY(-180deg);
}

[data-pocket="template-4"] .site-card__back-img_text {
    padding-top: 25px;
}

[data-pocket="template-5"] .site-card__back-img_text {
    padding-top: 20px;
}

@media only screen and (min-width:1024px) {
    [data-pocket="template-4"] .site-card__back-img_text {
        padding-top: 53px;
    }
}






.w-auto {
    width: auto !important;
}

.h-auto {
    height: auto;
}


.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}