:root {
	--aws-gallery-forest: #173b34;
	--aws-gallery-forest-dark: #102c27;
	--aws-gallery-mist: #eef3ef;
	--aws-gallery-sand: #d5aa5a;
	--aws-gallery-ink: #1e2825;
	--aws-gallery-muted: #5b6864;
	--aws-gallery-white: #fff;
	--aws-gallery-radius: var(--aws-media-radius, 22px);
	--aws-gallery-shadow: 0 20px 55px rgba(16, 44, 39, 0.12);
}

.c-aws-gallery-hub,
.c-aws-gallery-single {
	color: var(--aws-gallery-ink);
}

.c-aws-gallery-hub {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(52px, 7vw, 96px) 24px;
	white-space: normal;
}

.c-aws-gallery-hub__header,
.c-aws-gallery-grid-section__header {
	width: 100%;
	max-width: 720px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.c-aws-gallery-hub__eyebrow,
.c-aws-gallery-hero__eyebrow,
.c-aws-gallery-grid-section__eyebrow {
	margin: 0 0 10px;
	color: var(--aws-gallery-forest);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.c-aws-gallery-hub h2,
.c-aws-gallery-grid-section h2 {
	margin: 0 0 12px;
	color: var(--aws-gallery-forest-dark);
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.05;
}

.c-aws-gallery-hub__header > p:last-child,
.c-aws-gallery-grid-section__header > p:last-child {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: var(--aws-gallery-muted);
	font-size: 1.05rem;
	overflow-wrap: anywhere;
	white-space: normal !important;
}

.c-aws-gallery-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 360px));
	gap: clamp(20px, 3vw, 34px);
}

.c-aws-gallery-card {
	width: 100%;
	max-width: 360px;
	min-width: 0;
	margin: 0;
	border-radius: var(--aws-gallery-radius);
	background: var(--aws-gallery-white);
	box-shadow: var(--aws-gallery-shadow);
	overflow: hidden;
}

.c-aws-gallery-card__link {
	display: flex;
	height: 100%;
	color: inherit;
	text-decoration: none;
	flex-direction: column;
}

.c-aws-gallery-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--aws-gallery-mist);
}

.c-aws-gallery-hub .c-aws-gallery-card__media > img.c-aws-gallery-card__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100% !important;
	border-radius: 0 !important;
	object-fit: cover;
	object-position: center;
	transition: transform 350ms ease;
}

.c-aws-gallery-card__count {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(16, 44, 39, 0.86);
	color: var(--aws-gallery-white);
	font-size: 0.76rem;
	font-weight: 700;
	backdrop-filter: blur(8px);
}

.c-aws-gallery-card__body {
	display: flex;
	padding: 24px;
	flex: 1;
	flex-direction: column;
}

.c-aws-gallery-card__title {
	color: var(--aws-gallery-forest-dark);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
}

.c-aws-gallery-card__description {
	display: block;
	margin-top: 12px;
	color: var(--aws-gallery-muted);
	line-height: 1.65;
}

.c-aws-gallery-card__cta {
	display: inline-flex;
	margin-top: 22px;
	color: var(--aws-gallery-forest);
	font-size: 0.9rem;
	font-weight: 700;
	gap: 8px;
	align-items: center;
}

.c-aws-gallery-card__link:hover .c-aws-gallery-card__image {
	transform: scale(1.035);
}

.c-aws-gallery-card__link:focus-visible,
.c-aws-gallery-grid__link:focus-visible,
.c-aws-gallery-back-link:focus-visible,
.c-aws-gallery-breadcrumb a:focus-visible {
	outline: 3px solid var(--aws-gallery-sand);
	outline-offset: 4px;
}

.c-aws-gallery-single {
	padding: clamp(38px, 6vw, 84px) 24px clamp(64px, 8vw, 110px);
	background: linear-gradient(180deg, var(--aws-gallery-mist) 0, #fff 480px);
	overflow: clip;
}

.c-aws-gallery-single__shell {
	max-width: 1240px;
	margin: 0 auto;
}

.c-aws-gallery-breadcrumb {
	display: flex;
	margin-bottom: 24px;
	color: var(--aws-gallery-muted);
	font-size: 0.9rem;
	gap: 10px;
	align-items: center;
}

.c-aws-gallery-breadcrumb a,
.c-aws-gallery-back-link {
	color: var(--aws-gallery-forest);
	font-weight: 700;
}

.c-aws-gallery-elementor-hero {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
}

.c-aws-gallery-elementor-hero > .elementor > .elementor-element.elementor-top-section,
.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero {
	background-image: var(--aws-gallery-elementor-hero-image, none) !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.c-aws-gallery-elementor-hero > .elementor > .elementor-element.elementor-top-section > .elementor-background-overlay,
.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero > .elementor-background-overlay {
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero__breadcrumbs .c-aws-gallery-breadcrumb {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.78);
	justify-content: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero__breadcrumbs .c-aws-gallery-breadcrumb a {
	color: #fff;
}

.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero__description {
	width: min(820px, calc(100% - 40px));
	margin: 24px auto 0;
	color: #fff;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.65;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero__description .elementor-shortcode,
.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero__description p {
	margin: 0;
	line-height: inherit;
}

.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero__description :first-child {
	margin-top: 0;
}

.c-aws-gallery-elementor-hero .c-aws-gallery-elementor-acf-hero__description :last-child {
	margin-bottom: 0;
}

.c-aws-gallery-hero {
	display: grid;
	min-height: 540px;
	border-radius: var(--aws-gallery-radius);
	background: var(--aws-gallery-forest);
	box-shadow: var(--aws-gallery-shadow);
	grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
	overflow: hidden;
}

.c-aws-gallery-hero--no-image {
	min-height: auto;
	grid-template-columns: 1fr;
}

.c-aws-gallery-hero__content {
	display: flex;
	padding: clamp(36px, 6vw, 76px);
	color: rgba(255, 255, 255, 0.85);
	flex-direction: column;
	justify-content: center;
}

.c-aws-gallery-hero__eyebrow {
	color: var(--aws-gallery-sand);
}

.c-aws-gallery-hero h1 {
	margin: 0 0 24px;
	color: var(--aws-gallery-white);
	font-size: clamp(2.6rem, 6vw, 5.3rem);
	line-height: 0.98;
}

.c-aws-gallery-hero__description {
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.75;
}

.c-aws-gallery-hero__description > :first-child {
	margin-top: 0;
}

.c-aws-gallery-hero__description > :last-child {
	margin-bottom: 0;
}

.c-aws-gallery-hero__meta {
	margin: 28px 0 0;
	color: var(--aws-gallery-sand);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.c-aws-gallery-hero__media {
	position: relative;
	min-height: 540px;
	margin: 0;
	overflow: hidden;
	background-image: var(--aws-gallery-cover, none);
	background-position: center;
	background-size: cover;
}

.c-aws-gallery-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-aws-gallery-grid-section {
	padding-top: clamp(64px, 8vw, 112px);
}

.c-aws-gallery-grid {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	column-count: 3;
	column-gap: clamp(14px, 2vw, 24px);
}

.c-aws-gallery-grid__item {
	display: inline-block;
	width: 100%;
	min-width: 0;
	margin: 0 0 clamp(14px, 2vw, 24px);
	break-inside: avoid;
	vertical-align: top;
}

.c-aws-gallery-grid__link {
	position: relative;
	display: block;
	height: auto;
	border-radius: var(--aws-gallery-radius);
	overflow: hidden;
	background: var(--aws-gallery-mist);
}

.c-aws-gallery-grid__image {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 350ms ease;
}

/* Native WordPress galleries used in news posts. */
.aws-gp-news-masonry .gallery {
	display: block !important;
	margin: clamp(24px, 4vw, 42px) 0 0 !important;
	padding: 0;
	column-count: 3;
	column-gap: clamp(12px, 1.8vw, 20px);
}

.aws-gp-news-masonry .gallery .gallery-item {
	display: inline-block !important;
	float: none !important;
	width: 100% !important;
	margin: 0 0 clamp(12px, 1.8vw, 20px) !important;
	padding: 0 !important;
	break-inside: avoid;
	vertical-align: top;
}

.aws-gp-news-masonry .gallery .gallery-icon,
.aws-gp-news-masonry .gallery .gallery-icon a {
	display: block;
	line-height: 0;
}

.aws-gp-news-masonry .gallery img {
	display: block;
	width: 100%;
	height: auto;
	border: 0 !important;
	border-radius: var(--aws-gallery-radius);
}

.aws-gp-news-masonry .gallery br {
	display: none;
}

.aws-gp-news-masonry .gallery .gallery-caption {
	padding: 8px 4px 0;
	line-height: 1.45;
}

.c-aws-gallery-grid__zoom {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 9px 13px;
	border-radius: 999px;
	background: rgba(16, 44, 39, 0.88);
	color: var(--aws-gallery-white);
	font-size: 0.78rem;
	font-weight: 700;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.c-aws-gallery-grid__link:hover .c-aws-gallery-grid__image {
	transform: scale(1.025);
}

.c-aws-gallery-grid__link:hover .c-aws-gallery-grid__zoom,
.c-aws-gallery-grid__link:focus-visible .c-aws-gallery-grid__zoom {
	opacity: 1;
	transform: translateY(0);
}

.c-aws-gallery-single__footer {
	display: flex;
	padding: clamp(44px, 6vw, 76px) 0 clamp(16px, 3vw, 36px);
	justify-content: center;
}

.c-aws-gallery-pagination {
	display: flex;
	margin-top: clamp(28px, 4vw, 46px);
	gap: 10px;
	align-items: center;
}

.c-aws-gallery-pagination__link {
	display: inline-flex;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(23, 59, 52, 0.22);
	border-radius: 50%;
	color: var(--aws-gallery-forest);
	font-weight: 700;
	text-decoration: none;
	align-items: center;
	justify-content: center;
}

.c-aws-gallery-pagination__link[aria-current="page"] {
	border-color: var(--aws-gallery-forest);
	background: var(--aws-gallery-forest);
	color: var(--aws-gallery-white);
}

.c-aws-gallery-pagination__link:focus-visible {
	outline: 3px solid var(--aws-gallery-sand);
	outline-offset: 3px;
}

.c-aws-gallery-single__footer .c-aws-gallery-back-link {
	display: inline-flex;
	min-height: 50px;
	max-width: 100%;
	padding: 13px 24px;
	border: 1px solid var(--aws-gallery-forest);
	border-radius: 999px;
	background: var(--aws-gallery-forest);
	box-shadow: 0 10px 24px rgba(23, 59, 52, 0.18);
	color: var(--aws-gallery-white);
	font-size: clamp(0.95rem, 1.3vw, 1.05rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	gap: 10px;
	align-items: center;
	justify-content: center;
	transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.c-aws-gallery-single__footer .c-aws-gallery-back-link span {
	font-size: 1.25em;
	line-height: 1;
	transition: transform 180ms ease;
}

.c-aws-gallery-single__footer .c-aws-gallery-back-link:hover {
	background: var(--aws-gallery-white);
	box-shadow: 0 14px 30px rgba(23, 59, 52, 0.22);
	color: var(--aws-gallery-forest);
	text-decoration: none;
	transform: translateY(-2px);
}

.c-aws-gallery-single__footer .c-aws-gallery-back-link:hover span {
	transform: translateX(-3px);
}

.c-aws-gallery-single__footer .c-aws-gallery-back-link:active {
	box-shadow: 0 6px 16px rgba(23, 59, 52, 0.16);
	transform: none;
}

@media (max-width: 900px) {
	.c-aws-gallery-hero {
		min-height: auto;
		grid-template-columns: 1fr;
	}

	.c-aws-gallery-hero__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
		grid-row: 1;
	}

	.c-aws-gallery-grid {
		column-count: 2;
	}

	.aws-gp-news-masonry .gallery {
		column-count: 2;
	}
}

@media (max-width: 620px) {
	.c-aws-gallery-hub,
	.c-aws-gallery-single {
		padding-right: 16px;
		padding-left: 16px;
	}

	.c-aws-gallery-hero__content {
		padding: 32px 24px 38px;
	}

	.c-aws-gallery-grid__link {
		border-radius: var(--aws-gallery-radius);
	}

	.c-aws-gallery-grid__zoom {
		opacity: 1;
		transform: none;
	}

	.c-aws-gallery-single__footer {
		padding-top: 40px;
		padding-bottom: 16px;
	}

	.c-aws-gallery-single__footer .c-aws-gallery-back-link {
		min-height: 48px;
		padding: 12px 20px;
	}

}

@media (max-width: 520px) {
	.c-aws-gallery-grid,
	.aws-gp-news-masonry .gallery {
		column-count: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.c-aws-gallery-card__image,
	.c-aws-gallery-grid__image,
	.c-aws-gallery-grid__zoom,
	.c-aws-gallery-single__footer .c-aws-gallery-back-link,
	.c-aws-gallery-single__footer .c-aws-gallery-back-link span {
		transition: none;
	}
}
