/* Values taken from ironworksdenver.co: "Early times demo" / Podkova (both loaded
   by the theme), #f1ebde cream, #282828 charcoal, #974f38 rust, #b9a259 gold,
   and the inner-page header's gradient and title rule. */

.iw-wg {
	--iw-wg-display: "Early times demo", Georgia, serif;
	--iw-wg-body: Podkova, Georgia, serif;
	--iw-wg-cream: #f1ebde;
	--iw-wg-charcoal: #282828;
	--iw-wg-rust: #974f38;
	--iw-wg-gold: #b9a259;
	font-family: var(--iw-wg-body);
}

/* Hero: the theme's navigation sits on top of it */
.iw-wg .iw-wg-hero {
	position: relative;
	height: 80vh;
	min-height: 470px;
	overflow: hidden;
	background: #24252c;
}

.iw-wg .iw-wg-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.iw-wg .iw-wg-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 95px 20px 20px;
	background: linear-gradient(rgba(37, 37, 37, .43), rgba(25, 25, 25, .7));
	text-align: center;
}

.iw-wg .iw-wg-hero__title {
	margin: 0;
	font-family: var(--iw-wg-display);
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 7px;
	text-transform: uppercase;
	color: var(--iw-wg-cream);
}

.iw-wg .iw-wg-hero__rule {
	display: block;
	width: 54px;
	height: 2px;
	margin-top: 18px;
	background: var(--iw-wg-cream);
}

/* Gallery */
.iw-wg .iw-wg-gallery {
	padding: 70px 20px;
	background: var(--iw-wg-cream);
}

.iw-wg .iw-wg-gallery > * {
	max-width: 1320px;
	margin-right: auto;
	margin-left: auto;
}

.iw-wg .iw-wg-gallery .wp-block-gallery.has-nested-images {
	display: block;
	column-count: 3;
	column-gap: 12px;
}

.iw-wg .iw-wg-gallery .wp-block-gallery.has-nested-images figure.wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 12px !important; /* core sets margin-bottom:auto with an ID-level selector */
	break-inside: avoid;
}

.iw-wg .iw-wg-gallery .wp-block-gallery.has-nested-images figure.wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Headings */
.iw-wg .iw-wg-heading {
	max-width: 900px;
	margin: 0 auto 24px;
	font-family: var(--iw-wg-display);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--iw-wg-charcoal);
	text-align: center;
}

/* Write-up */
.iw-wg .iw-wg-story {
	padding: 80px 20px;
	background: var(--iw-wg-charcoal);
}

.iw-wg .iw-wg-story .iw-wg-heading {
	color: var(--iw-wg-cream);
}

.iw-wg .iw-wg-story__subhead {
	margin: -8px 0 28px;
	font-family: var(--iw-wg-display);
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--iw-wg-gold);
	text-align: center;
}

.iw-wg .iw-wg-story__text {
	max-width: 820px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.7;
	color: var(--iw-wg-cream);
	text-align: center;
}

.iw-wg .iw-wg-story__text p {
	margin: 0 0 18px;
	font: inherit;
	color: inherit;
}

.iw-wg .iw-wg-story__text p:last-child {
	margin-bottom: 0;
}

/* Vendor credits */
.iw-wg .iw-wg-credits {
	padding: 80px 20px 200px;
	background: var(--iw-wg-cream);
}

.iw-wg .iw-wg-credits__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px 24px;
	max-width: 1100px;
	margin: 32px auto 0;
	padding: 0;
	list-style: none;
}

.iw-wg .iw-wg-credit {
	flex: 0 1 calc((100% - 48px) / 3);
	margin: 0;
	text-align: center;
}

.iw-wg .iw-wg-credit__role {
	display: block;
	margin-bottom: 6px;
	font-family: var(--iw-wg-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--iw-wg-rust);
}

.iw-wg .iw-wg-credit__name {
	font-family: var(--iw-wg-body);
	font-size: 18px;
	line-height: 1.4;
	color: var(--iw-wg-charcoal);
}

.iw-wg a.iw-wg-credit__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.iw-wg a.iw-wg-credit__name:hover {
	color: var(--iw-wg-rust);
}

/* Shortcode boxes */
.iw-wg.iw-wg-boxes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.iw-wg .iw-wg-box {
	position: relative;
	display: block;
	height: 320px;
	overflow: hidden;
	background: #24252c;
	text-decoration: none;
}

.iw-wg .iw-wg-box__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform .4s ease;
}

.iw-wg .iw-wg-box__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 24px 20px;
	background: linear-gradient(rgba(37, 37, 37, .2), rgba(25, 25, 25, .8));
	text-align: center;
}

.iw-wg .iw-wg-box__title {
	margin-bottom: 16px;
	font-family: var(--iw-wg-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--iw-wg-cream);
}

.iw-wg .iw-wg-box__button {
	padding: 10px 18px;
	border: 1px solid var(--iw-wg-gold);
	background: var(--iw-wg-gold);
	font-family: var(--iw-wg-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
	transition: background-color .2s ease;
}

.iw-wg .iw-wg-box:hover .iw-wg-box__image,
.iw-wg .iw-wg-box:focus-visible .iw-wg-box__image {
	transform: scale(1.04);
}

.iw-wg .iw-wg-box:hover .iw-wg-box__button,
.iw-wg .iw-wg-box:focus-visible .iw-wg-box__button {
	background: transparent;
}

@media (max-width: 1024px) {
	.iw-wg.iw-wg-boxes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iw-wg .iw-wg-credit {
		flex-basis: calc((100% - 24px) / 2);
	}
}

@media (max-width: 767px) {
	.iw-wg.iw-wg-boxes {
		grid-template-columns: minmax(0, 1fr);
	}

	.iw-wg .iw-wg-hero {
		height: 60vh;
		min-height: 400px;
	}

	.iw-wg .iw-wg-hero__title {
		letter-spacing: 4px;
	}

	.iw-wg .iw-wg-gallery {
		padding: 30px 12px;
	}

	.iw-wg .iw-wg-gallery .wp-block-gallery.has-nested-images {
		column-count: 2;
		column-gap: 8px;
	}

	.iw-wg .iw-wg-gallery .wp-block-gallery.has-nested-images figure.wp-block-image {
		margin-bottom: 8px !important;
	}

	.iw-wg .iw-wg-story,
	.iw-wg .iw-wg-credits {
		padding: 50px 20px 200px !important;
	}

	.iw-wg .iw-wg-story__text {
		font-size: 16px;
	}

	.iw-wg .iw-wg-credit {
		flex-basis: 100%;
	}
}
