/* gallery widget */
.media-gallery {
	margin-bottom: 30px;
}

.media-gallery .top-content {
	margin-bottom: 30px;
}

.media-gallery > .inner {
	margin: 0 auto;
	padding: 0 20px;
	max-width: 1200px;
}

.media-gallery .albums {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 580px) {
	.media-gallery .albums {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 840px) {
	.media-gallery .albums {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.media-gallery .albums {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

.media-gallery .album {
	position: relative;
}

.media-gallery .album::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
	pointer-events: none;
}

.media-gallery .album .overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	padding: 8px 12px;
	width: 100%;
}

.media-gallery .album .title {
	font-family: var(--font-display-system, var(--font-display, serif));
	margin-bottom: 10px;
	font-size: 0.9rem;
	font-weight: var(--font-weight-bold, 700);
	line-height: 1.4;
	color: var(--white, #fff);
}

.media-gallery .album .counts {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--white, #fff);
}

.media-gallery .album .counts span + span {
	margin-left: 6px;
}

.media-gallery .album img {
	display: block;
	width: 100%;
	height: auto;
}

.media-gallery .gallery-title {
	font-family: var(--font-display-system, var(--font-display, serif));
}


/* Album */
.mg-album {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: var(
		--font-body,
		-apple-system,
		BlinkMacSystemFont,
		Segoe UI,
		Helvetica,
		Arial,
		sans-serif,
		Apple Color Emoji,
		Segoe UI Emoji
	);
	font-size: 14px;
	line-height: 1.5;
	color: var(--white, #fff);
	background-color: #0e0e0e;
	overflow: hidden;
	overflow-y: auto;
}

.mg-album a {
	color: var(--sw-system-link-color, var(--primary-color-400), #20b0e0);
}

@media (hover: hover) {
	.mg-album a:hover {
		color: var(--sw-system-link-hover-color, var(--primary-color-500), #20b0e0);
	}
}

@media (min-width: 1024px) {
	.mg-album a {
		color: var(--sw-system-link-color, var(--primary-color-700), #0078a0);
	}

	@media (hover: hover) {
		.mg-album a:hover {
			color: var(--sw-system-link-hover-color, var(--primary-color-800), #0078a0);
		}
	}
}

.mg-album p {
	margin-bottom: 20px;
}

.mg-album img {
	display: block;
	width: 100%;
	height: auto;
}

.mg-album .navbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 8px 20px;
}

@media (min-width: 1024px) {
	.mg-album .navbar {
		position: absolute;
		z-index: 1;
		justify-content: flex-end;
		width: 100%;
	}

	.mg-album.info-open .navbar {
		width: calc(100% - 320px);
	}
}

.mg-album .navbar .control {
	flex-shrink: 0;
	color: var(--white, #fff);
}

.mg-album .navbar .control a {
	display: flex;
	align-items: center;
	gap: 4px;
	color: inherit;
}

.mg-album .navbar .control.control-left {
	left: 20px;
}

.mg-album .navbar .control.control-right {
	right: 20px;
}

.mg-album .navbar .shared-back-button {
	display: none;
}

.mg-album.in-frame .navbar .shared-back-button {
	display: none !important;
}

.mg-album .navbar .controls {
	display: none;
}

@media (min-width: 1024px) {
	.mg-album .navbar .control {
		display: none;
	}

	.mg-album .navbar .control.control-back {
		display: block;
	}

	.mg-album .navbar .controls {
		display: flex;
		align-items: baseline;
		padding: 14px 0;
		color: var(--white, #fff);
	}

	.mg-album .navbar .controls span {
		margin-right: 10px;
	}

	.mg-album .navbar .controls a {
		margin: 0;
		padding: 0;
		width: 29px;
		height: 29px;
		color: var(--white, #fff);
		text-align: center;
		border-radius: 50%;
	}

	.mg-album .navbar .controls a i {
		display: block;
		line-height: 29px;
	}

	@media (hover: hover) {
		.mg-album .navbar .controls a:hover {
			text-decoration: none;
			background-color: #2c2c2c;
		}
	}

	.mg-album .navbar .controls .atclear {
		display: none;
	}
}

.mg-album .album-items {
	position: relative;
	flex: 1;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	.mg-album .album-items {
		flex: none;
	}
}

.mg-album .album-items .images-container {
	padding: 0 20px;
}

.mg-album .album-items .album-details {
	padding: 0 20px;
}

.mg-album .album-details .glide__track,
.mg-album .album-details .glide__slides {
	overflow: visible;
}

.mg-album .album-items .album-details .glide__slides {
	transform: none !important;
	display: block;
	width: auto !important;
}

.mg-album .album-items .album-details .glide__slide {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	height: auto;
	opacity: 0;
	transition: opacity 800ms ease;
}

.mg-album .album-items .album-details .glide__slide:first-child {
	position: relative;
}

.mg-album .album-items .album-details .glide__slide--active {
	z-index: 2;
	opacity: 1;
}

.mg-album .album-items .album-images {
	opacity: 0;
	pointer-events: none;
}

.mg-album .album-items .album-images.active {
	opacity: 1;
	pointer-events: all;
}

.mg-album .video-player {
	height: 100%;
}

.mg-album .video-player .plyr__control {
	pointer-events: all;
}

@media (min-width: 1024px) {
	.mg-album .album-items {
		display: flex;
	}

	.mg-album .album-items .images-container {
		position: relative;
		display: flex;
		flex-direction: column;
		padding: 0;
		width: 100%;
	}

	.mg-album.info-open .album-items .images-container {
		width: calc(100% - 320px);
	}

	.mg-album .album-items .album-images {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: calc(100% - 140px);
		max-width: 1024px;
		margin: 0 auto;
	}

	.mg-album .album-items .album-details {
		width: 320px;
	}

	.mg-album .album-items .album-details .glide__slide {
		pointer-events: none;
	}

	.mg-album .album-items .album-details .glide__slide--active {
		pointer-events: all;
	}

	.mg-album .album-items .album-details :is(.glide, .glide__track, .glide__slides, .glide__slide) {
		height: 100%;
	}
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	.mg-album .album-items .images-container {
		display: block !important;
	}
}

.mg-album .item .details {
	position: relative;
	padding: 14px 0;
	height: 138px;
	border-top: 1px solid #3e3e3e;
	border-bottom: 1px solid #3e3e3e;
	overflow: hidden;
}

.mg-album .item .details.open {
	height: auto;
}

.mg-album .item .details::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(to bottom, transparent, #0e0e0e);
	pointer-events: none;
}

@media (min-width: 1024px) {
	.mg-album .album-items .album-details {
		position: absolute;
		color: #3e3e3e;
		max-height: 100vh;
		background-color: var(--white, #fff);
		overflow: auto;
		opacity: 0;
		pointer-events: none;
	}

	.mg-album.info-open .album-items .album-details {
		position: relative;
		opacity: 1;
		pointer-events: all;
	}

	.mg-album .item .details {
		height: auto;
		border: none;
	}

	.mg-album .item .details::after {
		display: none;
	}
}

.mg-album .album-items .album-details .detail-header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 50px;
}

.mg-album .album-items .album-details .btn-close {
	width: 29px;
	height: 29px;
	padding: 0;
	text-align: center;
	border-radius: 50%;
	border: none;
	background: none;
	cursor: pointer;
	display: none;
}

@media (min-width: 64em) {
	.mg-album .album-items .album-details .btn-close {
		display: block;
	}
}

@media (hover: hover) {
	.mg-album .album-items .album-details .btn-close:hover {
		background-color: #ededed;
	}
}

.mg-album .album-items .album-details .item:focus-visible {
	outline: none;
}

.mg-album .item .details.open::after {
	opacity: 0;
}

.mg-album .item .title {
	font-size: 17px;
	line-height: 21px;
}

.mg-album .item .credit {
	color: #808080;
}

@media (min-width: 1024px) {
	.mg-album .item .credit {
		color: inherit;
	}
}

.mg-album .item .meta-block {
	margin-bottom: 35px;
}

.mg-album .meta-block .title {
	margin: 0;
	font-size: 15px;
	font-weight: var(--font-weight-bold, 700);
}

.mg-album .meta-block .list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mg-album .meta-block .list:not(.list-inline) .list-item {
	margin-bottom: 4px;
}

.mg-album .meta-block .list.list-inline {
	display: flex;
	flex-wrap: wrap;
}


.mg-album .meta-block .list.list-inline .list-item:not(:last-child) a::after {  
    content: ",";  
    margin-right: 4px;  
    color: var(--sw-key-color, var(--primary-color-700), #20b0e0);  
}  

@media (min-width: 1024px) {  
    .mg-album .meta-block .list.list-inline .list-item::after {  
        color: var(--sw-key-color-hover, var(--primary-color-800), #0078a0);  
    }  
}  

.mg-album .toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	font-size: 13px;
	color: var(--white, #fff);
	border: none;
	background: none;
	cursor: pointer;
}

.mg-album .info-toggle {
	display: none;
}

.mg-album .close-toggle {
	display: none;
	padding: 0;
}

.mg-album.in-frame .close-toggle {
	display: block;
}

@media (min-width: 1024px) {
	.mg-album .toggle {
		display: none;
	}

	.mg-album.in-frame .close-toggle {
		display: block !important;
	}

	.mg-album .info-toggle {
		display: block;
		padding: 0;
		width: 29px;
		height: 29px;
		text-align: center;
		border-radius: 50%;
	}

	.mg-album.info-open .info-toggle {
		display: none;
	}

	.mg-album .info-toggle i {
		display: block;
		line-height: 29px;
	}

	@media (hover: hover) {
		.mg-album .info-toggle:hover {
			background-color: #2c2c2c;
		}
	}
}

.mg-album .arrows-container {
	display: flex;
	align-items: baseline;
	justify-content: center;
	padding: 18px 0;
	gap: 32px;
}

.mg-album .count {
	font-size: 13px;
}

.mg-album .count.desktop {
	display: none;
	align-items: baseline;
	justify-content: center;
	padding: 18px;
}

.mg-album .count .total {
	color: #808080;
}

.mg-album .arrows-container .arrow {
	padding: 0 16px;
	color: var(--white, #fff);
	border: none;
	background: none;
	cursor: pointer;
}

.mg-album .arrows-container .arrow .fas {
	font-size: 18px;
}

@media (min-width: 1024px) {
	.mg-album .arrows-container {
		position: absolute;
		inset: 50% 0 auto 0;
		transform: translateY(-50%);
		z-index: 2;
		justify-content: space-between;
		pointer-events: none;
	}

	.mg-album .arrows-container .arrow {
		padding: 0;
		width: 64px;
		height: 64px;
		text-align: center;
		border-radius: 50%;
		opacity: 0.6;
		pointer-events: all;
	}

	.mg-album .count.mobile {
		display: none;
	}

	.mg-album .count.desktop {
		display: flex;
		align-items: baseline;
		justify-content: center;
		padding: 18px;
	}

	@media (hover: hover) {
		.mg-album .arrows-container .arrow:hover {
			background-color: #2c2c2c;
			opacity: 1;
		}
	}

	.mg-album .arrows-container .arrow[aria-label="Previous"] {
		left: 20px;
	}

	.mg-album .arrows-container .arrow[aria-label="Next"] {
		right: 20px;
	}

	.mg-album .arrows-container .arrow .fas {
		font-size: 50px;
	}
}

.mg-album .thumbnails-container {
	display: none;
}

.mg-album .mobile-gallery-grid {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-3);
	align-content: start;
	padding: 0 var(--space-5);
	background: #0e0e0e;
	overflow-y: auto;
	overflow-x: hidden;
	opacity: 0;
	visibility: hidden;
}

.mg-album .mobile-thumb {
	position: relative;
}

.mg-album:not(.gallery-open) .mobile-gallery-grid,
.mg-album:not(.gallery-open) .mobile-gallery-grid * {
	pointer-events: none;
}

.mg-album.gallery-open .mobile-gallery-grid {
	opacity: 1;
	visibility: visible;
}


@media (min-width: 1024px) {
	.mg-album .thumbnails-container {
		position: relative;
		display: block;
		margin-top: auto;
		padding: 0;
		padding-bottom: 40px;
		width: 100%;
		height: auto;
		overflow: visible;
		opacity: 0;
		pointer-events: none;
	}

	.mg-album .thumbnails-container.active {
		opacity: 1;
		pointer-events: all;
	}

	.mg-album .mobile-gallery-grid {
		display: none;
	}
}

.mg-album .thumbnails-container .thumbnail {
	position: relative;
}

@media (min-width: 1024px) {
	.mg-album .thumbnails-container .thumbnail {
		opacity: 0.4;
		transition: opacity 140ms ease-in-out;
	}

	@media (hover: hover) {
		.mg-album .thumbnails-container .thumbnail:hover {
			opacity: 1;
		}
	}
}

.mg-album .thumbnail-button {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	background: none;
	opacity: 0;
	cursor: pointer;
}

.mg-album .thumbnails-container .thumbnail img {
	box-shadow: 0 0 0 4px #0e0e0e;
}

.mg-album .thumbnails-container .thumbnail {
	padding: 4px;
	background-color: var(--white, #fff);
}

.mg-album .thumbnails-container .item.glide__slide--active img {
	box-shadow: 0 0 0 2px #0e0e0e;
}

.mg-album .sv-share {
	max-width: none !important;
	padding: 0;
}