.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 200px);
	grid-template-rows: repeat(auto-fill, 100px);
	grid-gap: 4px;
	/* grid-auto-rows: min-max(80px, auto); */
	grid-auto-flow: dense;
	background-color: white;
	justify-content: center;
}

.gallery-div{
	padding: 120px 0 0 0;
}

.gallery-div .fh5co-heading{
	margin-bottom: 0;
}

.gallery-span-portrait-1 {
	/* min-height: 300px; */
	grid-row-end: span 2;
}

.gallery-span-portrait-2 {
	/* min-height: 300px; */
	grid-column-end: span 2;
	grid-row-end: span 4;
}

.gallery-span-land-1 {
	/* min-height: 100px; */
}

.gallery-span-land-2 {
	/* min-height: 200px; */
	/* grid-column-end: span 2; */
	/* grid-row-end: span 2; */
	grid-column-end: span 2;
	grid-row-end: span 2;
}


.gallery-card {
	/* min-height: 100px; */
	/* background-size: cover; */
	/* background-position: 50% 50%; */
}

.gallery-span-2 {
	grid-column-end: span 2;
	grid-row-end: span 2;
	min-height: 200px;
}

.gallery-span-3 {
	grid-column-end: span 3;
	grid-row-end: span 3;
	min-height: 400px;
}

.gallery-modal {
	display: none;
	position: fixed;
	z-index: 10001;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: white;
	flex-direction: column;
}

.gallery-toolbar {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	height: 45px;
	position: fixed;
	top: 0;
	background: linear-gradient(rgba(30, 30, 30, .9), #000 1810%);
	width: 100%;
	padding-left: 24px;
}

.gallery-toolbar span{
	color: white;
	font-family: "Work Sans", Arial, sans-serif;
}

.gallery-modal .gallery-grid {
	margin-top: 45px;
}

.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

.modal-open {
	overflow: hidden;
}

.gallery-loader {
	width: 100%;
	height: 100%;
	background-color: white;
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
}

.spinner-loader {
	width: 48px;
	height: 48px;
	border: 5px solid #FFF;
	border-bottom-color: var(--primary);
	border-radius: 50%;
	display: inline-block;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.pswp__img{
	object-fit: contain;
}

.gallery-toolbar-button {
    height: 100%;
    width: 45px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
	color: white;
}

@media only screen and (max-width: 768px) {
	.gallery-div{
		padding: 100px 0 0 0;
    }
}

.pswp__custom-caption {
	font-size: 16px;
	color: #fff;
	padding: 2px 8px;
	border-radius: 4px;
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
  }
  .pswp__custom-caption a {
	color: #fff;
	text-decoration: underline;
  }
  .hidden-caption-content {
	display: none;
  }