/* 
	Theme Name: Magda Iżewska Theme 
	Description: A plain-vanilla & lightweight theme for Magda Iżewska
	Author: RAW-CODE
	Author URI: https://raw-code.it/
	Template: hello-elementor
    Version: 2.0.0
	Requires PHP: 5.6
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: m-izewska
*/

/* Add your custom styles here */
html,
body {
   margin: 0;
   padding: 0;
   height: 100%;
   width: 100%;
}

.main_container{
	width: 100vw;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
}
.i-main-height{
    max-height: 50vh !important;
    overflow: hidden;
}

.i-main-height.kontakt{
    overflow: visible !important;
    z-index: 10;
}
.i-logo a,
.i-logo a svg{
    transition: all 0.25s ease-in-out;
}

.i-menu nav .menu-item a{
    display: flex;
    justify-content: center;
}
/* .i-menu nav .menu-item a::after,
.i-inst-link a::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    background-color: black !important;
    visibility: hidden;
    transform: scaleX(0);
    transition: .25s linear;
} */
/* .i-menu nav .menu-item a:hover::after,
.i-inst-link a:hover::after{
    visibility: visible;
    transform: scaleX(1);
} */


/* .i-menu nav .menu-item.current_page_item a::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    background-color: black !important;
    visibility: visible;
    transform: scaleX(1);
    opacity: 1 !important;
} */

body .main_container{
    min-height: 100vh;
}

@media only screen and (max-width: 768px) {
    .i-menu nav{
        position: absolute;
        top: 45px;
        width: 250px;
        margin: auto;
        left: 50%;
        transform: translate(-50%, 0%);
        z-index: 20;
    }
}

.i-inst-link{
    margin-right: 15px;
    margin-left: 15px;
}
@media only screen and (max-width: 768px) {
    .i-inst-link{
        margin:auto !important;
    }
}


.horizontal-scroll-carousel .elementor-loop-container{
    overflow-x: scroll;
    white-space: wrap;
    scroll-behavior: smooth;
} 

.m-single-projekt .m-horizontal-slider,
.m-single-obiekt .m-horizontal-slider{
    width: 100%;
    max-height: 40vh;
}

.m-single-projekt .m-horizontal-slider .single-element,
.m-single-obiekt .m-horizontal-slider .single-element{
  width: fit-content;
  max-height: 40vh;
}
.m-single-projekt .m-horizontal-slider .single-element img,
.m-single-obiekt .m-horizontal-slider .single-element img{
    width: auto;
    height: 100%;
    object-fit: contain;
    max-height: calc(40vh - 2px);
  } 

  .m-single-projekt .m-horizontal-slider .project-description,
  .m-single-obiekt .m-horizontal-slider .obiekt-description{
    border: 1px solid black;
    padding: 20px;
    width: fit-content;
    max-width: 500px;
    min-width: 300px;
    height: calc(40vh - 2px);
    overflow-y: scroll;
  }
  .m-single-projekt .m-horizontal-slider h1,
  .m-single-obiekt .m-horizontal-slider h1{
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.8rem;
  }
  .m-single-projekt .m-horizontal-slider p,
  .m-single-obiekt .m-horizontal-slider p{
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.5rem;
}


.m-post-list .m-post-slider-vertical .m-post-inner,
.m-post-list .m-post-slider-horizontal .m-post-inner{
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.m-post-list .m-post-slider-vertical .m-post-inner .m-post-image,
.m-post-list .m-post-slider-horizontal .m-post-inner .m-post-image{
    width: 100%;
    height: 100%;
}
.m-post-list .m-post-slider-vertical .m-post-inner .m-post-image img,
.m-post-list .m-post-slider-horizontal .m-post-inner .m-post-image img{
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.m-post-list .m-post-slider-vertical .m-post-link,
.m-post-list .m-post-slider-horizontal .m-post-link{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}
.m-post-list .m-post-slider-vertical .m-post-inner .m-post-title-holder{
    position: absolute;
    padding: 5px 15px;
    background-color: whitesmoke;
    left: 0;
    bottom: 10px;
    transform: translateX(-100%);
    transition: transform .4s ease-in-out,-webkit-transform .4s ease-in-out;
}
.m-post-list .m-post-slider-horizontal .m-post-inner .m-post-title-holder{
    position: absolute;
    padding: 5px 15px;
    background-color: whitesmoke;
    left: 0;
    bottom: 15px;
    transform: translateX(-100%);
    transition: transform .4s ease-in-out,-webkit-transform .4s ease-in-out;
}
.m-post-list .m-post-slider-vertical .m-post-inner .m-post-title-holder .m-post-title,
.m-post-list .m-post-slider-horizontal .m-post-inner .m-post-title-holder .m-post-title{
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: lowercase;
    color: black;
    line-height: 1.8rem;
    margin: 0px;
    transition: .3s ease-in-out;
}
.m-post-list .m-post-slider-vertical .single-element:hover .m-post-inner .m-post-title-holder,
.m-post-list .m-post-slider-horizontal .single-element:hover .m-post-inner .m-post-title-holder{
    transform: translateX(0%);
}

.m-post-list .m-post-slider-horizontal,
.m-post-list .m-post-slider-vertical,
.m-single-projekt .m-horizontal-slider,
.m-single-obiekt .m-horizontal-slider{
    cursor: grab;
}
.m-post-list .m-post-slider-vertical{
    overflow: hidden;
    height: 100vh;
    padding: 30px 20px;
}
.m-post-list .m-post-slider-vertical .swiper-slide{
    max-width: 500px;
    height: auto !important;
}
.m-post-list .m-post-slider-vertical .swiper-wrapper{
    flex-direction: column;
    align-items: center;
    transition-timing-function : linear;
}


.m-single-projekt,
.m-single-obiekt{
    overflow: hidden;
}

.m-single-projekt .m-vertical-slider,
.m-single-obiekt .m-vertical-slider{
    height: 100vh;
    padding: 30px 20px;
}

.m-single-projekt .m-vertical-slider .swiper-wrapper,
.m-single-obiekt .m-vertical-slider .swiper-wrapper{
    flex-direction: column;
    align-items: center;
    transition-timing-function : linear;
}

.m-single-projekt .m-vertical-slider .single-element,
.m-single-obiekt .m-vertical-slider .single-element{
    max-width: 500px;
    height: auto !important;
}
.m-single-projekt .m-vertical-slider .single-element img,
.m-single-obiekt .m-vertical-slider .single-element img{
    width: 100%;
    height: auto;
    object-fit: contain;
  } 

  .m-single-projekt .m-vertical-slider .project-description,
  .m-single-obiekt .m-vertical-slider .obiekt-description{
    border: 1px solid black;
    padding: 20px;
    width: 100%;
    /* overflow-y: scroll; */
  }
  .m-single-projekt .m-vertical-slider h1,
  .m-single-obiekt .m-vertical-slider h1{
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.8rem;
  }
  .m-single-projekt .m-vertical-slider p,
  .m-single-obiekt .m-vertical-slider p{
    font-family: 'Darker Grotesque', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.5rem;
}



/*
    -------------------------------------
	RAW-CODE
	-------------------------------------
*/
.raw-code-credits{
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 20;
}
.raw-code-credits a{
    transition: 0.25s;
  }
  .raw-code-credits a:hover{
    color: #00af9a !important;
  }

  @media only screen and (max-width: 768px) {
    .raw-code-credits{
        position: relative;
        bottom: 0px;
        right: 0px;
    }
}