.photo-gallery-itemwrap {
    display: none;
}

.paginator-content a {
    display: block;
}

.photo-gallery-item:before {
    content: "";
    display: block;
    padding-top: 100%;
}

.photo-gallery-itemouter {
    width: 16.66%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 5px solid transparent;
    float: left;
    margin: 0;
}

.photo-gallery-item {
    transition: all 0.4s ease 0s;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
}

.no-touch .photo-gallery-itemouter:hover .photo-gallery-item {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

.paginator-content {
    padding: 0;
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.photo-gallery-caption {
    position: absolute;
    top: 48%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #FFFFFF;
    transition: opacity 0.4s ease 0s;
    -webkit-transition: opacity 0.4s ease 0s;
    -moz-transition: opacity 0.4s ease 0s;
    z-index: 20;
    text-align: center;
}

.photo-gallery-captionarrow {
    font-size: 40px;
    margin-top: 1rem;
}

.photo-gallery-withlink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease 0s;
    -webkit-transition: opacity 0.4s ease 0s;
    -moz-transition: opacity 0.4s ease 0s;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 10;
}

.photo-gallery-withlink:hover .photo-gallery-caption, .photo-gallery-withlink:hover::before {
    opacity: 1;
}

@media only screen and (max-width: 1024px) {
    .photo-gallery-itemouter {
        width: 20%;
    }
}


@media only screen and (max-width: 800px) {
    .photo-gallery-itemouter {
        width: 25%;
    }

    .photo-gallery-caption {
        font-size: 1.6vw;
    }

    .photo-gallery-captionarrow {
        font-size: 30px;
    }
}

@media only screen and (max-width: 500px) {
    .photo-gallery-itemouter {
        width: 33.33%;
    }
}

/* linkbox */
.linkbox {
    background: #F0F0F0;
    position: relative;
}

.linkboxinner {
    padding: 20px 60px 20px 20px;
}

.linkbox.nolink .linkboxinner {
    padding: 20px;
}

.linkbox.withlink > a {
    display: block;
    font-family: var(--f-family);
}

.linkbox .linkbox-title {
    text-transform: uppercase;
    line-height: 140%;
    color: #FF4500;
    font-size: 120%;
    font-family: var(--f-family);
    margin-bottom: 0.2em;
}

.no-touch .linkbox.withlink:hover {
    background: #FF4500;
}

.no-touch .linkbox.withlink:hover .linkbox-title {
    color: #FFFFFF;
}

.contentarea > .frame-type-gridelements_pi1:nth-child(2n) .linkbox {
    background: #FFFFFF;
}

.linkbox-subtitle {
    color: #646464;
}

.no-touch .linkbox.withlink:hover .linkbox-subtitle, .no-touch .linkbox.withlink:hover a {
    color: #FFFFFF;
}

.linkbox-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -24px;
}

.linkbox .arrow {
    fill:none;
    stroke:#FF4500;
    stroke-miterlimit:10;
}
.linkboxinner:hover .arrow {
    stroke:#FFFFFF;
}
.t3ddy-item .linkbox {
    background: #FFFFFF;
}

.imagefullwidth {
    height: 34vw;
    max-height: 700px;
    width: 100%;
}

.mobileimagefullwidth.imagefullwidth {
    background-attachment: scroll !important;
}

