html, body {
    background: rgb(120,120,120);
    background: linear-gradient(0deg, rgb(80,80,80) 0%, rgb(0,0,0) 10%, rgb(0,0,0) 50%, rgb(0,0,0) 90%, rgb(80,80,80) 100%);
}

.main {
    position: relative;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    box-sizing: border-box;
}

.main .preview {
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    box-sizing: border-box;
    padding: 0;
}

.main .preview .menu {
    position: absolute;
    opacity: 0;
    z-index: 6;
    width: 100%;
    bottom: 0;
    left: 0;
    box-sizing: border-box;

    -webkit-transition: opacity 0.6s ease-in-out, background-color 0.5s ease-in-out 0.35s;
    -moz-transition: opacity 0.6s ease-in-out, background-color 0.5s ease-in-out 0.35s;
    -o-transition: opacity 0.6s ease-in-out, background-color 0.5s ease-in-out 0.35s;
    -ms-transition: opacity 0.6s ease-in-out, background-color 0.5s ease-in-out 0.35s;
    transition: opacity 0.6s ease-in-out, background-color 0.5s ease-in-out 0.35s;
}

.main .preview .menu h2 {
    color: white;
    font-weight: 400;
}

.main .preview .menu .linksWrapper {
    max-height: 0;
    overflow: hidden;

    -webkit-transition: max-height 1s ease-in-out, height 1s ease-in-out;
    -moz-transition: max-height 1s ease-in-out, height 1s ease-in-out;
    -o-transition: max-height 1s ease-in-out, height 1s ease-in-out;
    -ms-transition: max-height 1s ease-in-out, height 1s ease-in-out;
    transition: max-height 1s ease-in-out, height 1s ease-in-out;
}

.main .preview.expand .menu {
    opacity: 1;
    background-color: rgba(0,0,0,0.5);
}

.main .preview .menu .linksWrapper a {
    color: var(--themeGrey);
    display: block;
    font-weight: 800;

    -webkit-transition: color 0.4s;
    -moz-transition: color 0.4s;
    -o-transition: color 0.4s;
    -ms-transition: color 0.4s;
    transition: color 0.4s;
}

.main .preview .menu .linksWrapper a:hover {
    color: var(--themeLtGrey);
}

.main .preview.expand .menu .linksWrapper a {
    color: var(--themeLtGrey);
}

.main .preview.expand .menu .linksWrapper a:hover {
    color: rgb(240,240,240);
}

.main .preview:hover .menu {
    opacity: 1;
}

.main .preview .iconWrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
}

.main .preview .fillWrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    padding: 0;

    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    -o-transition: all 0.35s ease-in-out;
    -ms-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

.main .preview.expand .fillWrapper {
    width: 100%;

    -webkit-transition: all 0.35s ease-in-out 0.44s;
    -moz-transition: all 0.35s ease-in-out 0.44s;
    -o-transition: all 0.35s ease-in-out 0.44s;
    -ms-transition: all 0.35s ease-in-out 0.44s;
    transition: all 0.35s ease-in-out 0.44s;
}

.main .preview .imgSm{
    position: absolute;
    z-index: 0;
    object-fit: cover;
    object-position: center;
    filter: brightness(100%);
    width: 100%;
    height: 100%;

    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.main .preview:hover .imgSm{
    filter: brightness(40%);
    width: 110%;
    margin-left: -5%;
    height: 110%;
    margin-top: -5%;
}

.main .preview .imgLg {
    top: -300%;
    z-index: 1;
    position: absolute;
    object-fit: contain;
    width: 100%;

    -webkit-transition: top 0.8s ease-in-out;
    -moz-transition: top 0.8s ease-in-out;
    -o-transition: top 0.8s ease-in-out;
    -ms-transition: top 0.8s ease-in-out;
    transition: top 0.8s ease-in-out;
}

.main .preview.expand .imgLg {
    top: 0;
}

.cp-banner-popup-bkg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;

  transition: opacity 800ms;
}

.cp-banner-popup-bkg.cp-open {
  opacity: 1;
  pointer-events: all;
}

.cp-banner-popup {
  position: relative;
  width: 95%;
  max-width: 512px;
}

.cp-banner-popup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (min-width: 860px) {

    .main {
        width: calc(100% - 8vw);
        margin: 10vh 0 0 4vw;
        padding-bottom: calc(25vw * 0.563679 + 12vh);
    }

    .main .preview {
        width: 25%;
        height: calc((25vw - 4px) * 0.522);
    }

    .main .preview.expand .fillWrapper {
        height: calc(200% + 4px);
    }

    .main .preview .menu:hover .linksWrapper,
    .main .preview.expand .menu .linksWrapper {
        max-height: calc(25vw * 0.64);
    }

    .main .preview .menu {
        padding: 0 1vw 0.4vh 1vw;
    }

    .main .preview .menu h2 {
        font-size: 1vw;
        letter-spacing: 0.05vw;
    }

    .main .preview .menu .linksWrapper a {
        font-size: 0.9vw;
        letter-spacing: 0.02vw;
    }

    .main .preview .menu .linksWrapper a:last-child {
        margin-bottom: 1.3vh;
    }

}

@media screen and (max-width: 859px) {
    .main {
        width: calc(100% - 4vw);
        margin: 11vh 0 0 2vw;
        padding-bottom: calc((50vw - 4px) * 0.55 + 14vh);
    }

    .main .preview.expand .fillWrapper {
        height: calc(200% + 8px);
    }

    .main .preview {
        width: 50%;
        height: calc((50vw - 4px) * 0.55);
    }

    .main .preview .menu:hover .linksWrapper,
    .main .preview.expand .menu .linksWrapper {
        max-height: calc(50vw * 0.74);
    }

    .main .preview .menu {
        padding: 0 2vw 0vh 2vw;
    }

    .main .preview .menu h2 {
        font-size: 3.7vw;
        letter-spacing: 0.25vw;
    }

    .main .preview .menu .linksWrapper a {
        font-size: 3.1vw;
        letter-spacing: 0.04vw;
        margin-bottom: 0.4vh;
    }

    .main .preview .menu .linksWrapper a:last-child {
        margin-bottom: 1.3vh;
    }
}