/* Al-Sumait Photo Archive — presentation layer.
   Scope: body.dsc-photos-page only. No JS; lightbox is WP core.
   v1.2.0 — adds the dsc-phx-* index layer (masonry album grid, stats band, ARCHIVE mark). */

body.dsc-photos-page {
	--dsp-ink-soft: #4A6A61;
	--dsp-border: var(--wp--preset--color--border-light, #DCE8E3);
	--dsp-primary: var(--wp--preset--color--primary, #1F6F5F);
}

/* ---------- shared wrapper: every section is alignfull + this inner wrap ---------- */
.dsc-photos { padding-inline: clamp(20px, 4vw, 48px); }
.dsc-ph-wrap { max-width: var(--wp--style--global--wide-size, 1260px); margin-inline: auto; }

/* ---------- eyebrow / crumbs ---------- */
.dsc-ph-eyebrow {
	font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
	color: var(--dsp-primary);
}
.dsc-ph-crumb { margin-bottom: 26px; }
.dsc-ph-crumb a {
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--dsp-ink-soft); text-decoration: none;
}
.dsc-ph-crumb a:hover { color: var(--dsp-primary); }

/* ---------- index hero ---------- */
.dsc-ph-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 52px); }
.dsc-ph-title {
	font-size: clamp(52px, 8vw, 104px); line-height: .98; letter-spacing: -.01em;
	margin-top: 14px; text-wrap: balance;
}
.dsc-ph-title em { font-style: italic; color: var(--dsp-primary); }
.dsc-ph-sub { margin-top: 22px; max-width: 56ch; font-size: 17px; color: var(--dsp-ink-soft); }

.dsc-ph-count { margin-top: 30px; }
.dsc-ph-count .wp-block-column { flex: 0 0 auto !important; margin-right: 34px; }
.dsc-ph-count h3 { font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0; }
.dsc-ph-count p { font-size: 13px; color: var(--dsp-ink-soft); margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- album cards (index, v1 — kept for reference/rollback) ---------- */
.dsc-ph-albums { margin-top: 6px; }
.dsc-album-card { position: relative; }
.dsc-album-cover { overflow: hidden; background: var(--wp--preset--color--tertiary, #EEE); margin: 0; }
.dsc-album-cover img {
	width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}
.dsc-album-card:hover .dsc-album-cover img,
.dsc-album-card:focus-within .dsc-album-cover img { transform: scale(1.035); filter: brightness(.94); }

.dsc-album-meta {
	display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
	padding: 16px 18px 20px; border: 1px solid var(--dsp-border); border-top: 0;
}
.dsc-ph-no {
	font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--dsp-primary); margin: 0 0 6px;
}
.dsc-album-meta h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; margin: 0; font-weight: 400; }
.dsc-album-meta h2 a { text-decoration: none; }
.dsc-album-meta h2 a:hover { color: var(--dsp-primary); }
.dsc-ph-side { font-size: 12.5px; color: var(--dsp-ink-soft); text-align: right; white-space: nowrap; margin: 0; font-variant-numeric: tabular-nums; }
.dsc-ph-side strong { display: block; color: inherit; font-weight: 600; }

/* ---------- album page head ---------- */
.dsc-ph-alhead { padding-block: clamp(36px, 5vw, 64px) clamp(26px, 3vw, 42px); }
.dsc-ph-alhead h1 {
	font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.01em;
	margin-top: 12px; text-wrap: balance;
}
.dsc-ph-lede { margin-top: 22px; max-width: 62ch; font-size: 17px; color: var(--dsp-ink-soft); }
.dsc-ph-facts {
	margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--dsp-border);
	font-size: 13px; color: var(--dsp-ink-soft); font-variant-numeric: tabular-nums;
}

/* ---------- masonry grid ---------- */
.dsc-masonry { columns: 3; column-gap: 22px; padding-bottom: 10px; }
@media (max-width: 960px) { .dsc-masonry { columns: 2; } }
@media (max-width: 560px) { .dsc-masonry { columns: 1; } }

.dsc-masonry .wp-block-image {
	break-inside: avoid; margin: 0 0 22px;
	background: var(--wp--preset--color--tertiary, #EEE);
}
.dsc-masonry .wp-block-image img { display: block; width: 100%; height: auto; transition: filter .35s ease; }
.dsc-masonry .wp-block-image:hover img { filter: brightness(.92); }
.dsc-masonry .wp-block-image figcaption {
	display: flex; justify-content: space-between; gap: 12px;
	margin: 0; padding: 10px 2px 4px; font-size: 12.5px; text-align: left;
	background: transparent;
	color: var(--dsp-ink-soft); transition: color .25s ease;
}
.dsc-masonry .wp-block-image:hover figcaption { color: var(--wp--preset--color--main, #10322B); }
.dsc-ph-place { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; white-space: nowrap; }

/* ---------- other albums (album page footer strip) ---------- */
.dsc-ph-others { border-top: 1px solid var(--dsp-border); padding-block: 34px 10px; margin-top: 26px; }
.dsc-ph-others .dsc-ph-eyebrow { margin-bottom: 22px; }
.dsc-mini {
	display: flex; gap: 14px; align-items: center;
	border: 1px solid var(--dsp-border); padding: 12px;
	transition: border-color .25s ease;
}
.dsc-mini:hover { border-color: var(--dsp-primary); }
.dsc-mini .wp-block-image { margin: 0; flex: none; }
.dsc-mini .wp-block-image img { width: 72px; height: 72px; object-fit: cover; display: block; }
.dsc-mini h3 { font-size: 19px; line-height: 1.1; margin: 0; font-weight: 400; }
.dsc-mini h3 a { text-decoration: none; }
.dsc-mini h3 a:hover { color: var(--dsp-primary); }
.dsc-mini-m {
	font-size: 11.5px; color: var(--dsp-ink-soft); letter-spacing: .08em;
	text-transform: uppercase; margin: 4px 0 0;
}

/* ---------- closing CTA ---------- */
.dsc-ph-closing { padding-block: clamp(40px, 6vw, 72px); margin-top: clamp(44px, 6vw, 80px); }
.dsc-ph-closing h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; margin-top: 12px; font-weight: 400; }
.dsc-ph-closing p { font-size: 15px; max-width: 52ch; }
.dsc-ph-ghost { margin-top: 18px; }
.dsc-ph-ghost a {
	color: var(--wp--preset--color--base, #fff); font-size: 14px; text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--main-accent, #C9E6DC); padding-bottom: 2px;
}

/* ---------- footer note ---------- */
.dsc-ph-foot { padding-block: 26px 44px; font-size: 12.5px; color: var(--dsp-ink-soft); }

/* ==========================================================================
   dsc-phx-* — index v2 (session 15): compact hero + ARCHIVE mark + stats band
   + masonry album grid (3-up, uneven ratios) + filler tiles. Album pages untouched.
   ========================================================================== */

/* ----- hero ----- */
.dsc-phx-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 80px) clamp(26px, 3vw, 44px); }
.dsc-phx-mark {
	position: absolute; inset-inline: 0; top: clamp(-26px, -1.6vw, -8px);
	text-align: center; pointer-events: none; user-select: none; margin: 0; z-index: 0;
	font-family: var(--wp--preset--font-family--heading, "Instrument Serif", serif);
	font-size: clamp(110px, 19vw, 280px); line-height: 1; letter-spacing: .02em;
	color: transparent; -webkit-text-stroke: 1px var(--dsp-border);
}
.dsc-phx-hero .dsc-ph-wrap > *:not(.dsc-phx-mark) { position: relative; z-index: 1; }
.dsc-phx-herogrid { align-items: flex-end; }
.dsc-phx-title {
	font-size: clamp(50px, 7.2vw, 96px); line-height: .95; letter-spacing: -.012em;
	margin-top: 8px; text-wrap: balance;
}
.dsc-phx-title em { font-style: italic; color: var(--dsp-primary); }
.dsc-phx-sub { max-width: 44ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: var(--dsp-ink-soft); margin-bottom: 6px; }

/* stats band */
.dsc-phx-stats { margin-top: clamp(28px, 3.5vw, 46px); border-block: 1px solid var(--dsp-border); gap: 0 !important; }
.dsc-phx-stats .wp-block-column { padding-block: clamp(14px, 1.8vw, 22px); }
.dsc-phx-stats .wp-block-column + .wp-block-column {
	border-inline-start: 1px solid var(--dsp-border); padding-inline-start: clamp(18px, 3vw, 40px);
}
.dsc-phx-stat { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.dsc-phx-stat strong {
	font-family: var(--wp--preset--font-family--heading, "Instrument Serif", serif);
	font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; font-variant-numeric: tabular-nums;
}
.dsc-phx-stat span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dsp-ink-soft); }
@media (max-width: 781px) {
	.dsc-phx-stats .wp-block-column + .wp-block-column {
		border-inline-start: 0; border-top: 1px solid var(--dsp-border); padding-inline-start: 0;
	}
	.dsc-phx-stats .wp-block-column { padding-block: 12px; }
}

/* ----- albums section head ----- */
.dsc-phx-albums { padding-block: clamp(24px, 3.5vw, 48px) 0; }
.dsc-phx-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: clamp(18px, 2.5vw, 30px); flex-wrap: wrap; gap: 6px 20px; }
.dsc-phx-head > * { margin: 0 !important; }
.dsc-phx-head .dsc-ph-eyebrow { color: var(--dsp-ink-soft); }
.dsc-phx-headnote { font-size: 12.5px; color: var(--dsp-ink-soft); letter-spacing: .08em; text-transform: uppercase; }

/* ----- masonry album grid ----- */
.dsc-phx-grid { columns: 3; column-gap: clamp(18px, 2.2vw, 28px); }
.dsc-phx-grid > * { break-inside: avoid; margin-block: 0 clamp(20px, 2.4vw, 32px) !important; }
@media (max-width: 960px) { .dsc-phx-grid { columns: 2; } }
@media (max-width: 600px) { .dsc-phx-grid { columns: 1; } }

/* card media + overlays */
.dsc-phx-media { position: relative; overflow: hidden; background: var(--wp--preset--color--tertiary, #EEE); }
.dsc-phx-media .wp-block-image, .dsc-phx-cover { margin: 0 !important; }
.dsc-phx-cover img {
	display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
	filter: saturate(.82);
	transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}
.dsc-phx-r34 .dsc-phx-cover img { aspect-ratio: 3 / 4; }
.dsc-phx-r11 .dsc-phx-cover img { aspect-ratio: 1 / 1; }
.dsc-phx-r45 .dsc-phx-cover img { aspect-ratio: 4 / 5; }
.dsc-phx-card:hover .dsc-phx-cover img,
.dsc-phx-card:focus-within .dsc-phx-cover img { transform: scale(1.05); filter: saturate(1); }

.dsc-phx-media::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(15, 28, 28, .42), transparent 45%);
}
.dsc-phx-media::after {
	content: "Open album →"; position: absolute; inset-inline-start: 14px; bottom: 12px;
	pointer-events: none; color: var(--wp--preset--color--base, #fff);
	font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
	opacity: 0; transform: translateY(8px);
	transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.dsc-phx-card:hover .dsc-phx-media::after,
.dsc-phx-card:focus-within .dsc-phx-media::after { opacity: 1; transform: none; }

.dsc-phx-chip {
	position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; pointer-events: none;
	background: rgba(255, 255, 255, .92); color: var(--wp--preset--color--main, #10322B);
	font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	padding: 6px 11px; border-radius: 100rem; margin: 0 !important; font-variant-numeric: tabular-nums;
}

/* card info */
.dsc-phx-info { padding: 22px 2px 0; }
.dsc-phx-info > * { margin-block: 0 !important; }
.dsc-phx-kicker {
	font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	color: var(--dsp-primary);
}
.dsc-phx-info h2 {
	margin-top: 8px !important; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.02;
	letter-spacing: -.01em; font-weight: 400; transition: color .3s ease;
}
.dsc-phx-info h2 a { text-decoration: none; }
.dsc-phx-card:hover .dsc-phx-info h2 a { color: var(--dsp-primary); }
.dsc-phx-desc { margin-top: 10px !important; font-size: 13.5px; line-height: 1.55; color: var(--dsp-ink-soft); }
.dsc-phx-meta {
	margin-top: 14px !important; padding-top: 10px; border-top: 1px solid var(--dsp-border);
	display: flex; justify-content: space-between; gap: 14px;
}
.dsc-phx-meta > p {
	margin: 0 !important; font-size: 11.5px; color: var(--dsp-ink-soft);
	letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}

/* filler tiles */
.dsc-phx-tile {
	display: flex; flex-direction: column; justify-content: space-between;
	padding: clamp(20px, 2vw, 28px); min-height: 280px;
}
.dsc-phx-tile > * { margin-block: 0 !important; }
.dsc-phx-tile h3 { margin-top: 10px !important; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.08; font-weight: 400; text-wrap: balance; }
.dsc-phx-tilep { margin-top: 12px !important; font-size: 13.5px; line-height: 1.55; }
.dsc-phx-cta {
	margin-top: 18px !important; font-size: 12px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase;
}
.dsc-phx-cta a { text-decoration: none; }
.dsc-phx-cta a:hover { text-decoration: underline; }
.dsc-phx-tile-soft { border: 1px solid var(--dsp-border); }
.dsc-phx-tile-soft .dsc-phx-tilep { color: var(--dsp-ink-soft); }
.dsc-phx-tile-soft .dsc-phx-cta { color: var(--dsp-primary); }

/* ---------- motion restraint ---------- */
@media (prefers-reduced-motion: reduce) {
	.dsc-photos *, .dsc-photos *::before, .dsc-photos *::after { transition: none !important; }
}
