/* The Reveille Times Photos — Getty-style storefront + detail
   Clean, neutral, white. Justified-row gallery, per-photo detail rail. */

.gi, .gi *, .gi-detail, .gi-detail * { box-sizing: border-box; }

.gi, .gi-detail {
	--ink: #0a0a0a;
	--body: #1a1a1a;
	--muted: #6b6b6b;
	--faint: #8e8e8e;
	--line: #e2e2e2;
	--line-2: #cfcfcf;
	--bg: #ffffff;
	--wash: #f4f4f4;
	--accent: #00857a;        /* Getty teal "buy" accent */
	--accent-dark: #006b62;
	--font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
	font-family: var(--font);
	color: var(--body);
	-webkit-font-smoothing: antialiased;
}

/* ── storefront ───────────────────────────────────────── */
.gi {
	background: var(--bg);
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

.gi-hero {
	padding: 46px 0 30px;
	text-align: center;
	border-bottom: 1px solid var(--line);
	margin-bottom: 18px;
}
.gi-hero-h {
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 700; letter-spacing: -.02em; color: var(--ink);
	margin: 0 0 8px;
}
.gi-hero-sub { font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.gi-search {
	display: flex; align-items: center; gap: 12px;
	max-width: 720px; margin: 0 auto;
	border: 2px solid var(--ink); border-radius: 2px;
	padding: 0 16px; height: 56px; background: #fff;
}
.gi-search svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; flex: none; }
#gi-search { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--font); font-size: 17px; color: var(--ink); }
#gi-search::placeholder { color: var(--faint); }

.gi-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.gi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gi-chip {
	font-size: 13px; font-weight: 600; color: var(--body);
	background: var(--wash); border: 1px solid transparent; border-radius: 999px;
	padding: 8px 16px; cursor: pointer; transition: all .15s ease;
}
.gi-chip:hover { background: #e8e8e8; }
.gi-chip.is-active { background: var(--ink); color: #fff; }
.gi-count { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* justified rows */
.gi-grid { display: flex; flex-direction: column; gap: 6px; }
.gi-row { display: flex; gap: 6px; }
.gi-card {
	position: relative; display: block; overflow: hidden;
	background: var(--wash); text-decoration: none; color: #fff;
	flex: 0 0 auto;
}
.gi-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gi-card::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 34%, transparent 56%);
	opacity: 0; transition: opacity .2s ease;
}
.gi-card:hover::after { opacity: 1; }
.gi-card:hover img { transform: scale(1.03); }
.gi-card-info {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 12px 13px; opacity: 0; transform: translateY(6px);
	transition: all .2s ease; pointer-events: none;
}
.gi-card:hover .gi-card-info { opacity: 1; transform: none; }
.gi-card-cap { font-size: 13px; line-height: 1.3; font-weight: 500;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gi-card-by { font-size: 11px; color: rgba(255,255,255,.8); margin-top: 3px; }
.gi-card-price {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	font-size: 12px; font-weight: 700; color: var(--ink); background: #fff;
	padding: 3px 8px; border-radius: 2px; opacity: 0; transition: opacity .2s ease;
}
.gi-card:hover .gi-card-price { opacity: 1; }

.gi-empty, .gi-noresults { text-align: center; color: var(--muted); font-size: 16px; padding: 60px 0; }

/* ── detail page ──────────────────────────────────────── */
.gi-detail {
	max-width: 1340px; margin: 0 auto; padding: 22px 20px 80px;
	background: #fff;
}
.gi-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gi-crumbs a { color: var(--muted); text-decoration: none; }
.gi-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.gi-crumbs em { color: var(--ink); font-style: normal; font-weight: 600; }

.gi-detail-cols { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 38px; align-items: start; }

.gi-stage { background: var(--wash); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; align-items: center; }
.gi-stage-img { max-width: 100%; max-height: 74vh; object-fit: contain; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.gi-stage-empty { color: var(--muted); padding: 80px 0; }
.gi-stage-cap { margin: 18px 0 0; max-width: 72ch; font-size: 13.5px; line-height: 1.55; color: var(--muted); text-align: center; }

.gi-rail { position: sticky; top: 16px; }
.gi-rail-id { font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.gi-rail-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.25; margin: 6px 0 6px; }
.gi-rail-credit { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.gi-rail-note { background: var(--wash); border: 1px solid var(--line); padding: 16px; font-size: 14px; color: var(--muted); border-radius: 3px; }

.gi-buy-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 12px; }
.gi-tiers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.gi-tier {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; text-align: left; cursor: pointer; background: #fff;
	border: 1px solid var(--line-2); border-radius: 3px; padding: 13px 15px; transition: all .12s ease;
}
.gi-tier:hover { border-color: var(--ink); }
.gi-tier.is-sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gi-tier-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gi-tier-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.gi-tier-desc { font-size: 12px; color: var(--muted); }
.gi-tier-price { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.gi-lbl { display: block; font-size: 12px; font-weight: 600; color: var(--body); margin: 0 0 6px; }
.gi-input { width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 3px; padding: 12px 13px; outline: 0; }
.gi-input:focus { border-color: var(--ink); }
.gi-hint { font-size: 12px; color: var(--muted); margin: 7px 0 16px; line-height: 1.45; }

.gi-methods { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.gi-method { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.gi-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; cursor: pointer; border: 0; border-radius: 3px;
	background: var(--accent); color: #fff; padding: 15px 18px;
	font-family: var(--font); font-weight: 700; font-size: 15px; transition: background .12s ease;
}
.gi-cta:hover:not(:disabled) { background: var(--accent-dark); }
.gi-cta:disabled { background: #c9c9c9; cursor: not-allowed; }
#gi-cta-price { font-size: 16px; }
.gi-err { color: #c0392b; font-size: 13px; margin: 10px 0 0; font-weight: 600; }

.gi-pay { margin-top: 6px; }
.gi-pay-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gi-pay-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0a000; animation: gi-pulse 1.6s infinite; }
@keyframes gi-pulse { 0% { box-shadow: 0 0 0 0 rgba(224,160,0,.5); } 70% { box-shadow: 0 0 0 7px rgba(224,160,0,0); } 100% { box-shadow: 0 0 0 0 rgba(224,160,0,0); } }
.gi-pay-lead { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.gi-pay-cmd { margin-bottom: 14px; }
.gi-pay-cmd-lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 6px; }
.gi-copy { width: 100%; text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink); background: var(--wash); border: 1px dashed var(--line-2); border-radius: 3px; padding: 11px 12px; cursor: pointer; position: relative; }
.gi-copy::after { content: 'copy'; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.gi-copy.is-copied::after { content: 'copied ✓'; color: var(--accent); }

.gi-paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.gi-paygrid > div { background: #fff; padding: 10px 12px; }
.gi-paygrid span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 3px; }
.gi-paygrid b { font-family: ui-monospace, Menlo, monospace; font-size: 15px; color: var(--ink); }

.gi-pay-wait { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gi-spin { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: gi-spin .8s linear infinite; }
@keyframes gi-spin { to { transform: rotate(360deg); } }
.gi-recheck { margin-left: auto; font-size: 12px; font-weight: 600; background: transparent; border: 1px solid var(--ink); border-radius: 3px; padding: 6px 11px; cursor: pointer; }
.gi-recheck:hover { background: var(--ink); color: #fff; }

.gi-done { text-align: center; padding-top: 6px; }
.gi-done-tick { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; display: grid; place-items: center; animation: gi-pop .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes gi-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.gi-done-h { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
#gi-done-license { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.gi-download { display: inline-block; text-decoration: none; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 3px; transition: background .12s ease; }
.gi-download:hover { background: #333; color: #fff; }
.gi-done-note { font-size: 12px; color: var(--faint); margin-top: 12px; }

.gi-specs { margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 6px; }
.gi-specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.gi-specs dt { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.gi-specs dd { margin: 0; font-size: 14px; color: var(--body); }

.gi-keywords { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 24px; }
.gi-keywords h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 14px; }
.gi-kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gi-kw { font-size: 13px; color: var(--body); text-decoration: none; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; transition: all .12s ease; }
.gi-kw:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 900px) {
	.gi-detail-cols { grid-template-columns: 1fr; gap: 24px; }
	.gi-rail { position: static; }
}
