.util-img-and-caption {
	position:relative;
}
a.util-img-and-caption,
a.util-video-and-caption {
	text-decoration: none;
	display: block;
	
}
@media (max-width:767px) {
	a.util-img-and-caption,
	a.util-video-and-caption {
	height: 100%;
	}
}
.util-caption {
	position: absolute;
	padding: 2px 6px 0;
	bottom: 15px;
	right: 10px;
	color: #fff;
	background: rgba(0,0,0,0.5);
}

.cmp-gallery__wrap--fiftyfifty .util-caption,
.cmp-gallery__wrap--minimal .util-caption {
	right: 5px;
}

.cmp-gallery__wrap {
	display: flex;
	min-height: 580px;
	margin-top:44px;
	margin-bottom:44px;

	@media (max-width:1024px){
		min-height: inherit;
	}
}

.cmp-gallery__wrap.cmp-gallery__wrap--toptitle {
	height:auto;
	flex-direction:column;
	min-height:650px;
}

.cmp-gallery__wrap.cmp-gallery__wrap--toptitle.cmp-gallery__wrap--notitle {
	min-height:480px;
}

@media (max-width:1024px) {
	.cmp-gallery__wrap {
		margin-top:40px;
		margin-bottom:40px;
		flex-direction:column;
	}
}

.cmp-gallery__wrap h2 {
	font-size: 50px;
	font-weight: 500;
	line-height: 55px;
	letter-spacing: 0em;
	width:25%;
}

@media (max-width:1024px) {
	.cmp-gallery__wrap h2 {
		width:100%;
	}
}

.cmp-gallery__wrap.cmp-gallery__wrap--toptitle h2 {
	width:100%;
	text-align:center;
}

.cmp-gallery__gallery-wrap {
	position: absolute;
	width: calc(100vw - 325px);
	max-width: 1350px;
	right: 0;
}

@media (max-width:1320px) {
  .cmp-gallery__gallery-wrap {
	padding-left: 20px;
	padding-right: 20px;
  }
}

@media (min-width:1301px) {
	.cmp-gallery__gallery-wrap {
		width: calc(50vw + 325px); 
	}
}

@media (max-width:1024px) {
	.cmp-gallery__gallery-wrap {
		position:relative;
		width:100%;
	}
}

.cmp-gallery__wrap.cmp-gallery__wrap--toptitle .cmp-gallery__gallery-wrap {
	width: calc(50vw + 650px);
	max-width: 100vw;
	margin-top: 140px;
}

@media (max-width:1024px) {
	.cmp-gallery__wrap.cmp-gallery__wrap--toptitle .cmp-gallery__gallery-wrap {
		margin-top: 0px;
	}
}

.cmp-gallery__wrap.cmp-gallery__wrap--toptitle.cmp-gallery__wrap--notitle .cmp-gallery__gallery-wrap {
	margin-top:0;
}

.cmp-gallery__wrap.cmp-gallery__wrap--minimal .cmp-gallery__gallery-wrap {
	position:relative;
	width:100%;
	max-width:100%;
	right:auto;
}

.cmp-gallery__wrap.cmp-gallery__wrap--fiftyfifty .cmp-gallery__gallery-wrap {
	position:relative;
	width:100%;
	max-width:100%;
	right:auto;
}

.cmp-gallery__item {
	width:638px;
	margin-right:32px;
}

.cmp-gallery__wrap--fiftyfifty .cmp-gallery__item {
	width:100%;
	margin-right:0;
}

.cmp-gallery__wrap--minimal .cmp-gallery__item {
	width:100%;
	margin-right:0;
}

.js-cmp-gallery__carousel:after {
  content: 'flickity';
  display: none; /* hide :after */
}

.js-cmp-gallery__carousel button.flickity-button.flickity-prev-next-button.previous,
.js-cmp-gallery__carousel button.flickity-button.flickity-prev-next-button.next {
	display:none;
} 

@media (min-width:1025px) {
	.js-cmp-gallery__carousel ol.flickity-page-dots {
		width: calc(100% - 174px);
		right: 0;
	}
	
	.js-cmp-gallery__carousel button.flickity-button.flickity-prev-next-button.previous,
	.js-cmp-gallery__carousel button.flickity-button.flickity-prev-next-button.next {
		display:block;
		top: auto;
		left: 0;
		bottom: -40px;
		background:transparent;
		transform: none;
		width: 45px;
		height: 19px;
		border-radius: 0;
		overflow: hidden;
	}
	
	.js-cmp-gallery__carousel button.flickity-button.flickity-prev-next-button.next {
		right: auto;
		left: 80px;
	}
	
	.flickity-prev-next-button svg.flickity-button-icon {
		left: 0;
		top:-1px;
		width: 100px;
		height: 100px;
		pointer-events: none;
	}
	
	.flickity-prev-next-button.next svg.flickity-button-icon {
		top: -80px;
		left: -54px;
	}
}

.cmp-gallery__text a.b-button {
	margin-bottom: 32px;
}
span.cmp-gallery__message-warning {
	text-decoration: none;
	top: -100px;
	display: block;
	position: relative;
	color: #b1abab;
	text-align: center;
}
.cmp-gallery__wrap--fiftyfifty {
	display:flex;
}

.cmp-gallery__wrap.cmp-gallery__wrap--fiftyfifty h2 {
	width:100%;
	margin:0;
}

.cmp-gallery__wrap--fiftyfifty .cmp-gallery__gallery-wrap,
.cmp-gallery__wrap--fiftyfifty .cmp-gallery__fifty-wrap {
	flex:1;
}

.cmp-gallery__fifty-wrap {
	display: flex;
	justify-content: center;
}

.cmp-gallery__fifty-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 60px 0;
	max-width: 400px;
}

/*set height of container when user selects portrait view */
.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle.cmp-gallery__height--portrait {
	min-height: 880px;
}
.cmp-gallery__wrap.cmp-gallery__wrap--toptitle.cmp-gallery__height--portrait {
	min-height: 930px;
	justify-content: space-between;
	margin-bottom: 30px;
}

.cmp-gallery__wrap.cmp-gallery__wrap--toptitle.cmp-gallery__height--portrait .cmp-gallery__gallery-wrap {
	margin-top: 180px;

}

.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle.cmp-gallery__height--portrait .cmp-gallery__item,
.cmp-gallery__wrap.cmp-gallery__wrap--toptitle.cmp-gallery__height--portrait .cmp-gallery__item {
	
	width: 438px;
}
.cmp-gallery__wrap.cmp-gallery__wrap--minimal.cmp-gallery__height--portrait .cmp-gallery__item {
	width: 100%;
}
.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle.cmp-gallery__height--portrait .cmp-gallery__item img,
.cmp-gallery__wrap.cmp-gallery__wrap--toptitle.cmp-gallery__height--portrait .cmp-gallery__item img {
	width: 100%;
	height: auto;
}

.cmp-gallery__wrap.cmp-gallery__wrap--minimal.cmp-gallery__height--portrait .cmp-gallery__item.cmp-gallery__item--portrait .util-img-and-caption {
	text-align: center;
}

.cmp-gallery__wrap.cmp-gallery__wrap--minimal.cmp-gallery__height--portrait .cmp-gallery__item.cmp-gallery__item--portrait img {
	width:42.2%;
	height: auto;
}

.cmp-gallery__wrap.cmp-gallery__wrap--minimal.cmp-gallery__height--portrait .cmp-gallery__item.cmp-gallery__item--portrait .cmp-gallery__text {
	width: 42.2%;
	margin: 0 auto;
}

.cmp-gallery__wrap.cmp-gallery__wrap--minimal.cmp-gallery__height--portrait .cmp-gallery__item.cmp-gallery__item--portrait .util-caption {
	right: 30%;
	max-width: 40%;
}

.cmp-gallery__item--landscape img {
	width: 100%;
	height: auto;
}

@media (min-width:768px) {
	.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle {
		min-height: 730px;
	}
	.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle .cmp-gallery__gallery-wrap {
		position: relative;
	}
	.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle.cmp-gallery__height--portrait h2 {
		margin-block-end: 0;
	}
}

@media (max-width:1024px) {
	.cmp-gallery__wrap--fiftyfifty {
		flex-direction:column;
	}
	
	.cmp-gallery__wrap--fiftyfifty .cmp-gallery__item img {
		width:100%;
		height:auto;
	}
	
	.cmp-gallery__fifty-content {
		max-width:100%;
		width:100%;
		padding-left: 20px;
		padding-right: 20px;
	}
	.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle {
		padding-left: 20px;
		padding-right: 20px;
		
	}
	.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle.cmp-gallery__height--portrait,
	.cmp-gallery__wrap.cmp-gallery__wrap--toptitle.cmp-gallery__height--portrait {
		min-height: 900px;
	}
	
	.cmp-gallery__wrap.cmp-gallery__wrap--minimal.cmp-gallery__height--portrait {
		min-height: 0;
	}
	
	
}
@media (max-width:1320px) {
	.cmp-gallery__wrap.cmp-gallery__wrap--sidetitle .cmp-gallery__gallery-wrap {
		padding-left: 0;
		padding-right: 0;
	}
}



/* video */
.util-video-and-caption video{
	position: absolute;
    top: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    left: 0;
}
.cmp-gallery__wrap--sidetitle .util-video-and-caption{
	position: relative;
	display: flex;
}
.cmp-gallery__wrap--sidetitle .util-video-and-caption video{
	max-height: none;
	max-width: none;
	width: 100%;
    height: 100%;
}
.cmp-gallery__wrap--minimal .util-video-and-caption{
	display: flex;
}
.cmp-gallery__wrap--minimal .util-video-and-caption video{
	max-width: none;
	width: 100%;
}
.cmp-gallery__wrap--toptitle.cmp-gallery__height--portrait .util-video-and-caption{
	position: relative;
	overflow: hidden;
	display: flex;
}
.cmp-gallery__wrap--toptitle.cmp-gallery__height--portrait .util-video-and-caption video{
	height: 100%;
    overflow: hidden;
	width: 100%;
    max-height: 100%;
}
.cmp-gallery__wrap--fiftyfifty .util-video-and-caption video{
		width: 100%;
    height: 100%;
		overflow: hidden;
}
