#swiper-container {
    box-sizing: content-box;
    height: 400px;
    width: 100%;
    background-color: #111;
}

#swiper-container .swiper-pagination,
#swiper-container .swiper-button-prev,
#swiper-container .swiper-button-next {
    display: none;
}

#swiper-container .swiper-slide {
    box-sizing: content-box;
    background: #222222;
}

#swiper-container .swiper-button-prev,
#swiper-container .swiper-button-next {
    width: 47px;
    height: 64px;
    margin-top: -32px;
    background-color: rgba(0, 0, 0, .1);
}

#swiper-container .swiper-button-prev:hover,
#swiper-container .swiper-button-next:hover {
    transition: background-color 180ms;
    background-color: rgba(0, 0, 0, .25);
}

#swiper-container .swiper-button-prev,
#swiper-container .swiper-container-rtl .swiper-button-next {
    left: 0;
    right: auto;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#swiper-container .swiper-button-next,
#swiper-container .swiper-container-rtl .swiper-button-prev {
    right: 0;
    left: auto;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.cph-gallery-container {
    box-sizing: content-box;
    position: relative;
    height: 400px;
    line-height: 396px;
    text-align: center;
}

.cph-gallery-container img {
    display: inline-block !important;
    max-height: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    vertical-align: middle !important;
}

.cph-gallery-ad-container {
    display: inline-block;
    line-height: 1em;
    margin: 0 -30px;
    vertical-align: middle;
}

.cph-gallery-video-container {
    height: 0;
    width: 100%;
    padding: 0;
}

.cph-gallery-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cph-gallery-captions {
    position: relative;
}

.cph-gallery-caption {
    display: none;
    padding: .5em .65em;
    border-bottom: 1px solid #555555;
    background-color: #EFEFEF;
}

.layout-large-image .post-info section:first-child {
    padding-top: 0;
    border-top-width: 0;
}

.layout-large-image .cph-gallery-caption {
    background-color: #FFFFFF;
}

@media (min-width:1024px) {
    .layout-large-image .cph-gallery-caption {
        padding: .5em 0;
    }
}

.layout-large-image .cph-gallery-caption .cph-gallery-slide-count {
    font-size: 1em;
}

.layout-large-image .cph-gallery-caption p {
    font-size: 1em;
    line-height: 1.25;
}


.cph-gallery-slide-count {
    text-transform: uppercase;
}

.cph-gallery-caption h1,
.cph-gallery-caption h2,
.cph-gallery-caption h3,
.cph-gallery-caption h4,
.cph-gallery-caption h5,
.cph-gallery-caption h6 {
    margin: 0 0 .65em 0;
    padding: 0;
    line-height: 1.2em;
    color: #111;
    font-weight: bold;
}

.cph-gallery-caption h1 {
    font-size: 1.5em;
}

.cph-gallery-caption h2 {
    font-size: 1.375em;
}

.cph-gallery-caption h3 {
    font-size: 1.25em;
}

.cph-gallery-caption h4 {
    font-size: 1.125em;
}

.cph-gallery-caption h5 {
    font-size: 1em;
}

.cph-gallery-caption h6 {
    font-size: .875em;
}

.cph-gallery-caption p,
.cph-gallery-caption li {
    line-height: 1.5em;
    font-size: .875em;
    color: #333;
}

.cph-gallery-caption a {
    /*color: #555;*/
    text-decoration: underline;
}

.cph-gallery-caption p,
.cph-gallery-caption ol,
.cph-gallery-caption ul,
.cph-gallery-caption blockquote {
    margin: 0 0 .65em 0;
    padding: 0;
}

.cph-gallery-caption blockquote {
    padding-left: .5em;
    border: none;
    border-left: 5px solid #333;
    font-size: 1em;
    font-weight: normal;
}

.cph-gallery-caption ol,
.cph-gallery-caption ul {
    margin-left: 1.1em;
    font-size: 1em;
}

.cph-gallery-caption ol ol,
.cph-gallery-caption ul ul {
    margin-bottom: 0;
}

.cph-gallery-caption li {
    margin: 0;
    padding: 0;
}

.cph-gallery-caption > :last-child {
    margin-bottom: 0;
}

.cph-gallery-share-buttons {
    display: none;
    position: absolute;
    /*top: -47px;*/
    top: -22px;
    right: 4px;
    z-index: 2;
    white-space: nowrap;
}

.cph-gallery-share-buttons a {
    float: left;
    padding: 4px;
}

.cph-gallery-share-buttons img {
    height: 32px !important;
    width: 32px !important;
}

#gallery-final-slide-redirect {
    display: none;
    position: absolute;
    top: -13px;
    right: 0;
    height: 90px;
    width: 275px;
    background-color: #000000;
}

#gallery-final-slide-redirect.slide-in {
    display: block;
}

@supports (transform: translate(100%, -50%)) {
    #gallery-final-slide-redirect {
        transform: translate(100%, -50%);
        display: block;
        top: 50%;
    }

    #gallery-final-slide-redirect.slide-in {
        animation: slide-in 0.38s forwards;
    }

    #gallery-final-slide-redirect.slide-out {
        animation: slide-out 0.19s forwards;
    }

    @keyframes slide-in {
        90% { transform: translate(-5%, -50%); }
        100% { transform: translate(0%, -50%); }
    }

    @keyframes slide-out {
        0% { transform: translate(-5%, -50%); }
        35% { transform: translate(0%, -50%); }
        100% { transform: translate(100%, -50%); }
    }
}

#gallery-final-slide-redirect img {
    float: right;
    height: 90px;
    width: auto;
}

#gallery-final-slide-redirect a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
}

.gallery-final-slide-redirect-heading {
    padding: 6px;
    line-height: 1;
    font-size: 20px;
    font-weight: bold;
}

.gallery-final-slide-redirect-title {
    padding: 0 6px;
    line-height: 18px;
    max-height: 56px;
    font-size: 14px;
    overflow: hidden;
}




.cph-gallery__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    margin: -1.25em 0 -.25em;
    padding: 0;
}

@media (min-width: 1024px) {
    .cph-gallery__grid {
        margin: -1.25em -.25em -.25em;
    }
}

.cph-gallery__grid > div {
    display: flex;
    flex: 1 0 auto;
    width: 8em;
    margin: .25em;
}

@media (min-width: 900px) {
    .cph-gallery__grid > div {
        width: 9em;
    }
}

@media (min-width: 1500px) {
    .cph-gallery__grid > div {
        width: 10em;
    }
}

.cph-gallery__grid > div.cph-gallery__grid-item {
    margin-top: 1.25em;
    cursor: pointer;
}

.cph-gallery__grid-item figure {
    width: 100%;
}

.cph-gallery__grid-item figcaption {
    line-height: 1.2;
    text-align: center;
}

.cph-gallery__grid-image {
    box-sizing: content-box;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #EEEEEE;
    overflow: hidden;
}

.cph-gallery__grid-image img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    border: none;
    object-fit: cover;
    object-position: 50% 0;
}



.cph-gallery__grid-lightbox .swiper-slide > figure {
    width: 100%;
    max-width: 65em;
}

.cph-gallery__grid-lightbox .cph-lightbox_gallery-slide-inner {
    display: block;
}

.cph-gallery__grid-modal-inner {
    padding: 1em;
}

.cph-gallery__grid-modal-image {
    text-align: center;
    margin-bottom: 1em;
}

.cph-gallery__grid-modal-image img {
    height: auto;
    width: auto;
    max-height: 300px;
    max-width: 100%;
}

@media (min-width: 601px) {
    .cph-gallery__grid-modal-image {
        float: right;
        max-width: 50%;
        margin: 0 0 .35em 1em;
    }
}

@media (min-width: 1025px) {
    .cph-gallery__grid-modal-image {
        max-width: 500px;
    }
}
