/* GTTCI Content Hub — media coverage detail page (0.9.0). Builds on the .gfb-* page styles in flipbook.css. */

/* Banner photo: framed, not tilted. */
.gmd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(240px, 400px); }
.gmd-hero__photo {
	display: block;
	justify-self: end;
	width: 100%;
	max-width: 400px;
	aspect-ratio: 4 / 5;
	border-radius: 10px;
	overflow: hidden;
	background: #1b2130;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .06);
}
.gmd-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gmd-hero__photo:hover img { transform: scale(1.04); }
.gmd-page .gfb-hero h1 { text-transform: none; }

/* Videos */
.gmd-videos { background: #0d1220; padding: 56px 0; }
.gmd-video {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.gmd-video + .gmd-video { margin-top: 28px; }
.gmd-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.gmd-video-link { text-align: center; margin: 0; }
.gmd-video-link a { color: #fff; font-weight: 600; }

/* Write-up */
.gmd-text { padding: 56px 0 0; }
.gmd-text .gfb-wrap { font-size: 17px; line-height: 1.75; color: #3a3f45; }
.gmd-text h2, .gmd-text h3 { font-family: var(--gfb-head); font-weight: 400; color: var(--gfb-ink); }

/* Coverage gallery (masonry columns keep tall clippings and wide photos whole). */
.gmd-coverage { background: #f2f4f7; padding: 64px 0 72px; scroll-margin-top: 90px; }
.gmd-text + .gmd-coverage { margin-top: 56px; }
.gmd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.gmd-head h2 { margin: 0; font-family: var(--gfb-head); font-weight: 400; font-size: 30px; line-height: 1.25; color: var(--gfb-ink); }
.gmd-hint { margin: 0; font-size: 14px; color: var(--gfb-muted); }
.gmd-grid { column-count: 3; column-gap: 22px; }
.gmd-item {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 20px rgba(13, 18, 32, .08);
	break-inside: avoid;
	cursor: zoom-in;
	transition: box-shadow .25s, transform .25s;
}
.gmd-item img { display: block; width: 100%; height: auto; }
.gmd-item:hover,
.gmd-item:focus-visible { box-shadow: 0 16px 36px rgba(13, 18, 32, .18); transform: translateY(-3px); outline: none; }
.gmd-item:focus-visible { box-shadow: 0 0 0 3px var(--gttci-fb-accent, #249bd3); }
.gmd-item__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(13, 18, 32, .78);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s;
}
.gmd-item:hover .gmd-item__zoom,
.gmd-item:focus-visible .gmd-item__zoom { opacity: 1; transform: none; }

/* More media */
.gmd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gmd-card { background: #fff; border: 1px solid #e4e4e4; border-radius: 8px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.gmd-card:hover { box-shadow: 0 14px 34px rgba(17, 19, 24, .12); transform: translateY(-3px); }
.gmd-card__img { display: block; aspect-ratio: 4 / 3; background: #e9edf2; overflow: hidden; }
.gmd-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gmd-card__body { padding: 18px 20px 22px; }
.gmd-card__body time { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gfb-muted); }
.gmd-card__body h3 { margin: 8px 0 0; font-family: var(--gfb-head); font-weight: 400; font-size: 18px; line-height: 1.4; }
.gmd-card__body h3 a { color: var(--gfb-ink); text-decoration: none; }
.gmd-card__body h3 a:hover { color: var(--gttci-fb-accent, #249bd3); }

@media (max-width: 1024px) {
	.gmd-hero__grid { grid-template-columns: minmax(0, 1fr) 260px; }
	.gmd-grid { column-count: 2; }
	.gmd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.gmd-hero__grid { grid-template-columns: 1fr; }
	.gmd-hero__photo { order: -1; justify-self: stretch; max-width: none; aspect-ratio: 16 / 10; }
	.gmd-videos { padding: 28px 0; }
	.gmd-video { border-radius: 8px; }
	.gmd-coverage { padding: 40px 0 48px; }
	.gmd-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
	.gmd-head h2 { font-size: 24px; }
	.gmd-grid { column-count: 1; }
	.gmd-item { margin-bottom: 16px; }
	.gmd-item__zoom { opacity: 1; transform: none; }
	.gmd-cards { grid-template-columns: 1fr; gap: 20px; }
}
