@import url(https://fonts.googleapis.com/css?family=Poppins:400,500,300,700,600);
body,
html {
    height: 100vh;
    padding: 0;
    margin: 0;
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.previews-container {
    align-items: stretch;
    display: flex;
    flex: 1 1 0;
    height: calc(100vh - 120px);
    justify-content: flex-start;
    padding: 60px;
    background-image: url(../images/item1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.preview-item {
    color: rgb(255, 255, 255);
    max-width: 39px;
    overflow: hidden;
    padding: 15px;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    transition: all 1s ease-in-out 0s;
    position: relative;
}

.preview-item.over {
    transition-delay: 0.7s;
}

.preview-title > p {
    font-family: "poppins";
    font-size: 18px;
    margin: 0;
    padding: 0;
    position: relative;
    text-transform: uppercase;
    top: 50px;
    transform: rotate(90deg);
    transition: all 0s linear 0s;
    white-space: nowrap;
}

.preview-item.over {
    flex-grow: 2;
    max-width: none;
}

.item1 {
      background-image: url(../images/item3.jpg);
    
}

.item2 {
    background-image: url(../images/item2.jpg);
}

.item3 {
  background-image: url(../images/item1.jpg);
}

.item4 {
    background-image: url(../images/item4.jpg);
}

.preview-item.item1.over {
    transition: all 1s ease-in-out 0s;
    flex-grow: 2;
    max-width: calc(100vw - 327px);
    /*    min-width: calc(100vw - 327px);*/
}

.preview-item.item1.closed {
    max-width: 39px !important;
}

.preview-item.over:first-child {
    flex-grow: 2;
    max-width: calc(100vw - 327px);
    /*  min-width: calc(100vw - 327px);*/
}

.preview-item.over {
    flex-grow: 2 !important;
    max-width: calc(100vw - 327px) !important;
    /*  min-width: calc(100vw - 327px) !important;*/
    transition: all 1s ease-in-out 0s;
}

.preview-title {
    cursor: pointer;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    visibility: visible !important;
    width: 69px;
}

.preview-title:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.preview-item.over .preview-title {
    visibility: hidden!important;
}

.preview-item:first-child:not(.closed) {
    max-width: calc(100vw - 327px) !important;
    flex-grow: 2 !important;
}

.preview-item:first-child:not(.closed) .preview-title {
    visibility: hidden !important;
}

.wrapper {
    height: 100%;
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: visible;
    overflow: hidden;
    min-width: calc(100vw - 327px);
}

.wrapper * {
    white-space: nowrap
}

figure {
    margin: 0;
}

.wrapper h2 {
  font-family: "poppins";
  font-size: 42px;
  font-weight: normal;
  letter-spacing: -0.9px;
  line-height: 1.4;
  margin: 0 0 5px;
  text-transform: capitalize;
}
.wrapper > p {
    font-family: "poppins";
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 25px;
    margin-top: 0;
}

.btngroup a {
    font-family: "poppins";
    display: block;
    float: left;
    font-size: 22px !important;
    padding: 10px 50px;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    transition: all 0.3s ease-in-out;
    font-weight: lighter;
}

.btngroup > a:hover,
.btngroup > a:focus {
    background-color: #fff;
    color: #264052;
    outline: 0 none;
}

.btngroup > a:focus {
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.1);
}

.btngroup {
    display: table;
    margin: 30px auto 20px;
}

.wrapper img {
    max-width: 400px;
}

@media (max-width: 991px) {
    .previews-container {
        display: block !important;
        padding: 0;
        background: none;
        height: auto;
    }
    .preview-item,
    .preview-item.over,
    .preview-item.closed,
    .preview-item.over:first-child,
    .preview-item.item1.closed {
        max-width: none !important;
        min-width: 0 !important;
        padding: 120px 50px 50px;
    }
    .preview-title {
        display: none;
    }
    footer {
        display: block !important;
        padding: 0 15px;
        text-align: center;
    }
    .boxed-frame footer {
        display: none !important;
    }
}

@media (max-width: 767px) {}


/* Landscape phones and smaller */

@media (max-width: 480px) {}