/*
 * Looks / Galerie (page-looks.php). Dark-editorial masonry gallery + Instagram
 * strip. Mobile-first (column-count masonry), base-specificity, fsr-* tokens,
 * no !important.
 */

/* ---- Filter chips (decorative — no per-image taxonomy) ---- */
.looks-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.looks-pill {
	font-family: var(--fsr-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: rgba(243, 237, 227, 0.8);
	border: 1px solid rgba(198, 161, 91, 0.4);
	border-radius: 999px;
	padding: 9px 22px;
	transition: background 0.2s ease, color 0.2s ease;
}
.looks-pill.is-active { background: var(--fsr-gold); color: #171310; border-color: var(--fsr-gold); }

/* ---- Masonry ---- */
.looks-grid { column-count: 1; column-gap: 20px; }
.looks-tile { break-inside: avoid; margin: 0 0 20px; position: relative; overflow: hidden; }
.looks-tile__link { display: block; position: relative; }
.looks-tile__img { display: block; width: 100%; height: auto; transition: transform 0.6s ease; }
.looks-tile:hover .looks-tile__img { transform: scale(1.05); }
.looks-tile__cap {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 20px 18px;
	background: linear-gradient(0deg, rgba(16, 13, 11, 0.86) 0%, rgba(16, 13, 11, 0.2) 70%, transparent 100%);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}
.looks-tile:hover .looks-tile__cap,
.looks-tile__link:focus-visible .looks-tile__cap { opacity: 1; transform: none; }
.looks-tile__label { font-family: var(--fsr-serif); font-size: 18px; color: #fff; line-height: 1.2; }
.looks-tile__view { font-family: var(--fsr-sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fsr-gold); }
.looks-empty { font-family: var(--fsr-sans); color: rgba(243, 237, 227, 0.72); }

/* ---- CTA band ---- */
.looks-cta__in { display: flex; flex-direction: column; gap: 26px; }
.looks-cta__title { color: #f6f0e6; }
.looks-cta__aside { display: flex; flex-direction: column; gap: 20px; }
.looks-cta__lead { font-family: var(--fsr-sans); font-size: 15px; line-height: 1.7; color: rgba(243, 237, 227, 0.72); margin: 0; max-width: 34em; }
.looks-cta__aside .fsr-btn { align-self: flex-start; }

/* ---- Instagram strip ---- */
.looks-insta__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	margin-bottom: 26px;
	border-bottom: 1px solid rgba(198, 161, 91, 0.28);
}
.looks-insta__head .fsr-kicker { margin: 0; }
.looks-insta__handle { font-family: var(--fsr-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fsr-gold); display: inline-flex; align-items: center; gap: 8px; }
.looks-insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.looks-insta__tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: block; }
.looks-insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.3s ease; }
.looks-insta__tile:hover img { transform: scale(1.06); filter: brightness(0.85); }
.looks-insta__ic {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.looks-insta__tile:hover .looks-insta__ic,
.looks-insta__tile:focus-visible .looks-insta__ic { opacity: 1; }

/* ================= RESPONSIVE ================= */
@media (min-width: 561px) {
	.looks-grid { column-count: 2; }
}
@media (min-width: 861px) {
	.looks-grid { column-count: 3; column-gap: 22px; }
	.looks-tile { margin-bottom: 22px; }
	.looks-cta__in { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
	.looks-cta__title { flex: 1 1 auto; max-width: 15ch; }
	.looks-cta__aside { flex: 0 1 400px; }
	.looks-insta__grid { grid-template-columns: repeat(6, 1fr); }
}

/* ─── Gallery lightbox ──────────────────────────────────────────────────────
   In-site modal replacing the old target="_blank" jump to the raw image file.
   Markup is built by assets/js/lightbox.js; without JS the link still resolves
   to the image, so the fallback degrades honestly. */
.fsr-lb { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; }
.fsr-lb[hidden] { display:none; }
.fsr-lb__backdrop { position:absolute; inset:0; background:rgba(12,10,9,.88); opacity:0; transition:opacity .18s ease; }
.fsr-lb.is-open .fsr-lb__backdrop { opacity:1; }
.fsr-lb__dialog { position:relative; display:flex; align-items:center; gap:8px;
  width:min(96vw,1180px); max-height:92vh; padding:0 8px;
  opacity:0; transform:scale(.985); transition:opacity .18s ease, transform .18s ease; }
.fsr-lb.is-open .fsr-lb__dialog { opacity:1; transform:none; }
.fsr-lb__figure { margin:0; flex:1 1 auto; min-width:0; display:flex; flex-direction:column; align-items:center; gap:14px; }
.fsr-lb__img { display:block; max-width:100%; max-height:78vh; width:auto; height:auto; object-fit:contain;
  border-radius:2px; box-shadow:0 30px 80px -30px rgba(0,0,0,.8); }
.fsr-lb__cap { margin:0; color:rgba(243,237,227,.82); font-family:var(--fsr-sans); font-size:13.5px;
  line-height:1.5; text-align:center; max-width:62ch; }
.fsr-lb__counter { position:absolute; left:50%; bottom:-30px; transform:translateX(-50%); margin:0;
  color:rgba(243,237,227,.6); font-family:var(--fsr-sans); font-size:12px; letter-spacing:.14em; }
/* Controls — 44px minimum touch target. */
.fsr-lb__close, .fsr-lb__nav { flex:0 0 auto; width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:1px solid rgba(198,161,91,.45); background:rgba(20,17,14,.55);
  color:var(--fsr-gold); cursor:pointer; transition:background .16s ease, color .16s ease, border-color .16s ease; }
.fsr-lb__close:hover, .fsr-lb__nav:hover { background:rgba(198,161,91,.16); color:#fff; border-color:var(--fsr-gold); }
.fsr-lb__close:focus-visible, .fsr-lb__nav:focus-visible { outline:2px solid var(--fsr-gold); outline-offset:3px; }
.fsr-lb__close { position:absolute; top:-6px; right:0; transform:translateY(-100%); }
.fsr-lb.is-single .fsr-lb__nav { display:none; }
body.fsr-lb-open { overflow:hidden; }
/* Gallery tiles are buttons-in-spirit now — show it. */
.looks-grid[data-fsr-lightbox] .looks-tile__link { cursor:zoom-in; }
@media (max-width:640px){
  .fsr-lb__dialog { width:100vw; padding:0 4px; gap:2px; }
  .fsr-lb__img { max-height:68vh; }
  .fsr-lb__close { top:8px; right:8px; transform:none; position:fixed; }
  .fsr-lb__counter { bottom:-26px; }
}
@media (prefers-reduced-motion: reduce){
  .fsr-lb__backdrop, .fsr-lb__dialog { transition:none; }
  .fsr-lb__dialog { transform:none; }
}
