body {
	background-color: #000000;
}

/* "Clone" and blur images for a psuedo-glowing effect */
#gridThumbs a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--glow-image);
	background-size: cover;
	background-position: center;
	filter: blur(30px);
	opacity: 0;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
	z-index: 0;
	pointer-events: none;
}

/* Make sure that the base images are ahead of the cloned image. */
#gridThumbs a img {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
}

/* How intense the image glow is */
#gridThumbs a:hover::after {
	transform: scale(1.15);
	opacity: 0.45;
}

/* Stop Squarespace from culling the glow effect */
.grid-image-inner-wrapper {
	overflow: visible;
}

/* Shrink the padding after gallery strips (e.g. in the operating section) */
.gallery-strips[data-width="full"] {
	padding-bottom: 1.75rem;
}

.expanded-gallery-outer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100svw;
	height: 100svh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;

	visibility: hidden;
	transition: opacity 0.5s ease;
	opacity: 0;

	user-select: none;
}

.expanded-gallery-outer.visible {
	opacity: 1;
	visibility: visible;
}

.expanded-gallery-wrapper {
	display: inline-block;
}

.expanded-gallery-figure {
	margin: 0;
}

.expanded-gallery-item-img {
	position: relative;
	display: inline-block;
}

.expanded-gallery-item-img img {
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	display: block;
}

.expanded-gallery-caption {
	display: inline-block;
	text-align: left;
	padding: 4px 0px;
	color: #fff;
	/*background: rgba(0, 0, 0, 0.5);*/
	box-sizing: border-box;
	max-width: 90vw;
	font-size: 16px;
}

.expanded-gallery-close {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	z-index: 10000;
    padding: 10px;
}

.expanded-gallery-close svg {
	width: 100%;
	height: 100%;
	stroke: white;
	stroke-width: 2;
	fill: none;
}

.expanded-gallery-nav {
	position: absolute;
	top: 0;
	bottom: 0;
	width: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.expanded-gallery-nav.left {
	left: 20px;
}

.expanded-gallery-nav.left svg {
    transform: translateX(-2px);
}

.expanded-gallery-nav.right svg {
    transform: translateX(2px);
}

.expanded-gallery-nav.right {
	right: 20px;
}

.expanded-gallery-nav svg {
	width: 30px;
	height: 50px;
	stroke: white;
	fill: none;
	top: 50%;
	transform: translateY(-50%);
}

.expanded-gallery-close svg,
.expanded-gallery-nav svg polyline,
.expanded-gallery-nav svg path {
	stroke-width: 2;
	stroke: white;
	fill: none;
}

.expanded-gallery-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.expanded-gallery-btn::after, .expanded-gallery-close::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
    z-index: -1;
}

.expanded-gallery-btn:hover::after, .expanded-gallery-close:hover::after {
    opacity: 1;
    transform: scale(1);
}

.expanded-gallery-btn svg {
    width: 30px;
    height: 30px;
    display: block;
}

