/*
Theme Name: Florencia S.M. Brück
Theme URI: https://florenciabruck.com
Author: Florencia S.M. Brück Studio
Description: Achromatic classic theme for the Florencia S.M. Brück portfolio — square corners, hairline rules, Barlow Condensed over Barlow, full-bleed galleries with 3px gaps.
Version: 2.12.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: fsmb
*/

:root {
  --fb-bg: #f2f2f2;
  --fb-surface: #e8e8e8;
  --fb-text: #121212;
  --fb-divider: rgba(18, 18, 18, .16);
  --fb-ink-700: #3a3a3a;
  --fb-ink-800: #242424;
  --fb-ink-900: #101010;
  --fb-gray-500: #989898;
  --fb-gray-600: #7a7a7a;
  --fb-hover: #5a5a5a;
  --fb-heading: 'Barlow Condensed', sans-serif;
  --fb-body: 'Barlow', sans-serif;
  --fb-max: 1500px;
  --fb-gutter: 32px;
  --fb-hair: 1px;
}

/* --- base ---------------------------------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  background: var(--fb-bg);
  color: var(--fb-text);
  font-family: var(--fb-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

* { border-radius: 0 !important; box-shadow: none !important; }

img, figure, .wp-block-image img, .wp-block-gallery img {
  border-radius: 0;
  border: 0;
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--fb-ink-900); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--fb-hover); }
::selection { background: #dbdbdb; }
:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fb-heading);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--fb-ink-800); text-wrap: pretty; }
.wp-block-post-content > * + * { margin-top: 0; }

/* --- layout -------------------------------------------------------------- */

.fb-wrap { max-width: var(--fb-max); margin: 0 auto; padding: 0 var(--fb-gutter); }
.fb-wrap--narrow { max-width: 1200px; }
.fb-section { padding-top: 64px; padding-bottom: 96px; }
.fb-prose { max-width: 70ch; display: flex; flex-direction: column; gap: 20px; }
.fb-prose p + p { margin-top: 20px; }
.fb-bleed { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }

/* two-column prose for long project texts */
.fb-prose--wide { max-width: 1180px; }
.fb-prose--two-col {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24em, 100%), 1fr));
  gap: 20px 56px;
  align-items: start;
}
.fb-prose--two-col > div { display: flex; flex-direction: column; gap: 20px; }

/* --- header / nav -------------------------------------------------------- */

.fb-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--fb-bg);
  border-bottom: 1px solid var(--fb-divider);
}
.fb-header__inner {
  max-width: var(--fb-max); margin: 0 auto;
  padding: 20px var(--fb-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.fb-brand {
  font-family: var(--fb-heading); font-weight: 200;
  font-size: 21px; line-height: 1; letter-spacing: .22em; text-transform: uppercase;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
}
.fb-burger {
  background: none; border: 0; padding: 6px; margin: -6px; cursor: pointer;
  color: var(--fb-text); display: flex; align-items: center;
}
.fb-burger:hover { color: var(--fb-hover); }
.fb-burger svg { display: block; }
.fb-burger .fb-burger__close { display: none; }
.fb-burger[aria-expanded="true"] .fb-burger__open { display: none; }
.fb-burger[aria-expanded="true"] .fb-burger__close { display: block; }

.fb-menu {
  border-top: 1px solid var(--fb-divider);
  background: var(--fb-bg);
  display: none;
}
.fb-menu.is-open { display: block; }
.fb-menu__inner {
  list-style: none;
}
.fb-menu__inner,
.fb-menu .wp-block-navigation__container {
  max-width: var(--fb-max); margin: 0 auto;
  padding: 26px var(--fb-gutter) 34px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  list-style: none;
}
.fb-menu a,
.fb-menu .wp-block-navigation-item__content {
  font-family: var(--fb-heading); font-weight: 200;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: .12em;
  text-transform: uppercase; padding: 8px 0; display: block;
}

/* --- homepage gateways --------------------------------------------------- */

.fb-gateways { display: flex; min-height: 100vh; }
.fb-gateway {
  position: relative; flex: 1 1 0; min-width: 0;
  display: block; overflow: hidden; cursor: pointer;
}
.fb-gateway img { width: 100%; height: 100%; object-fit: cover; }
.fb-gateway__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  background: linear-gradient(rgba(18, 18, 18, .22), rgba(18, 18, 18, .46) 45%, rgba(18, 18, 18, .22));
  font-family: var(--fb-heading); font-weight: 200;
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: .16em; text-transform: uppercase; color: #f6f6f6;
  transition: background 180ms ease;
}
.fb-gateway:hover .fb-gateway__label {
  background: linear-gradient(rgba(18, 18, 18, .34), rgba(18, 18, 18, .58) 45%, rgba(18, 18, 18, .34));
}
@media (max-width: 860px) {
  .fb-gateways { flex-direction: column; }
  .fb-gateway { min-height: 100vh; }
}

/* --- project page -------------------------------------------------------- */

.fb-project__head {
  max-width: var(--fb-max); margin: 0 auto;
  padding: clamp(6px, 1vw, 14px) var(--fb-gutter) clamp(16px, 2.2vw, 28px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.fb-project__title {
  font-size: clamp(28px, 4vw, 52px); letter-spacing: .04em; text-wrap: balance;
}
.fb-credit {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--fb-gray-600); margin-top: 12px;
}

/* --- video --------------------------------------------------------------- */

.fb-video, .wp-block-embed.fb-video { width: 100%; background: #121212; margin: 0; }
.fb-video .wp-block-embed__wrapper,
.fb-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.fb-video iframe,
.fb-video .wp-block-embed__wrapper iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.fb-video video { display: block; width: 100%; height: auto; background: #121212; }
.fb-video--half { width: calc(50% - (var(--fb-hair) / 2)); }
@media (max-width: 700px) { .fb-video--half { width: 100%; } }

/* --- gallery: manual layout classes ------------------------------------- */

.fb-gallery { display: flex; flex-direction: column; gap: var(--fb-hair); }
.fb-gallery > * { margin: 0; }

/* full-bleed image: edge to edge, past the page margins */
.fb-bleed, .wp-block-image.fb-bleed {
  margin: 0; width: 100vw; max-width: none;
  margin-left: calc(50% - 50vw);
}
.fb-bleed img { width: 100%; cursor: zoom-in; }

/* full-width image (default for horizontals) */
.fb-full, .wp-block-image.fb-full { margin: 0; }
.fb-full img { width: 100%; cursor: zoom-in; }

/* half-width image, left or right of an empty column */
.fb-half, .wp-block-image.fb-half {
  margin: 0;
  width: calc(50% - (var(--fb-hair) / 2));
}
.fb-half img { width: 100%; cursor: zoom-in; }
.fb-half--right, .wp-block-image.fb-half--right { margin-left: auto; }

/* a pair of images side by side */
.fb-pair { display: flex; gap: var(--fb-hair); align-items: flex-start; }
.fb-pair > * { flex: 0 0 calc(50% - (var(--fb-hair) / 2)); min-width: 0; margin: 0; }
.fb-pair img { width: 100%; cursor: zoom-in; }

/* a row holding a half image and a short note */
.fb-row { display: flex; gap: var(--fb-hair); align-items: flex-start; }
.fb-row--right { flex-direction: row-reverse; }
.fb-row__note {
  flex: 1 1 0; min-width: 0; padding: 8px 32px 0;
  font-size: 15px; line-height: 1.75; color: var(--fb-ink-800);
}

@media (max-width: 700px) {
  .fb-pair, .fb-row, .fb-row--right { flex-direction: column; }
  .fb-pair > *, .fb-half, .wp-block-image.fb-half { width: 100%; flex: 1 1 auto; }
  .fb-half--right { margin-left: 0; }
}

.fb-content { display: flex; flex-direction: column; gap: var(--fb-hair); }
.fb-content > .fb-pair, .fb-content > .wp-block-group.fb-pair { margin: 0; }

.fb-project__text { padding-top: clamp(48px, 6vw, 84px); }

/* WordPress's constrained layout centres a group's children at the global
   content width; the design sets them flush to the page's own left margin. */
.fb-project__text > *,
.fb-project__text > .wp-block-group,
.fb-project__text > .wp-block-heading,
.fb-project__text > p {
  margin-left: 0; margin-right: 0; max-width: none;
}

.fb-project__text h2,
.fb-project__text-title {
  font-family: var(--fb-heading); font-weight: 200;
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: .06em; line-height: 1.05;
  text-transform: uppercase;
  margin: 0; max-width: 24ch;
}
.fb-credit--text { margin-top: 14px; margin-bottom: 26px; }

/* credits / interview / specifications blocks */
.fb-credits {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--fb-divider);
  display: flex; flex-wrap: wrap; gap: 22px 56px;
}
.fb-credits__block { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fb-label {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--fb-gray-600);
}
.fb-credits p { font-size: 13px; line-height: 1.7; max-width: 70ch; }
.fb-rights {
  margin-top: 22px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fb-gray-600);
}
.fb-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; margin-top: 26px; }
.fb-logos img { height: 76px; width: auto; }

/* --- previous / next arrows --------------------------------------------- */

.fb-arrows {
  box-sizing: border-box;
  max-width: var(--fb-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.fb-arrows--top { padding: 32px var(--fb-gutter) 0; }
.fb-arrows--bottom {
  max-width: none; width: auto;
  margin-top: clamp(48px, 6vw, 84px);
  padding: 18px var(--fb-gutter);
  border-top: 1px solid var(--fb-divider);
  border-bottom: 1px solid var(--fb-divider);
}
.fb-arrows__link {
  display: flex; align-items: center;
  padding: 8px; margin: -8px;
  color: var(--fb-text);
}
.fb-arrows__link:hover { color: #3a3a3a; }
.fb-arrows__link svg { display: block; }

/* --- lightbox ------------------------------------------------------------ */

.fb-lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 18, 18, .96);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh; cursor: zoom-out;
}
.fb-lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }

/* --- category cards ------------------------------------------------------ */

.fb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 44px; align-items: start; margin-top: 56px;
}
.fb-card { background: none; border: 0; padding: 0; text-align: left; display: block; }
.fb-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fb-card:hover { opacity: .78; }
.fb-card__body { padding-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.fb-card__meta {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--fb-gray-600);
}
.fb-card__title {
  font-family: var(--fb-heading); font-weight: 300; font-size: 23px;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.1;
}
.fb-card__intro { font-size: 14px; line-height: 1.6; color: var(--fb-ink-700); }
.fb-blurb { font-size: 16px; line-height: 1.65; color: var(--fb-ink-700); max-width: 680px; }
.fb-page__title { font-size: clamp(34px, 5.4vw, 66px); letter-spacing: .05em; line-height: 1; }

/* --- contact ------------------------------------------------------------- */

.fb-contact {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start;
  margin-top: 48px;
}
.fb-contact__form { flex: 1 1 420px; max-width: 620px; min-width: 0; }
.fb-contact__side { flex: 0 1 320px; min-width: 260px; }
.fb-contact__studio { flex: 1 1 320px; min-width: 260px; }

.fb-rule {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--fb-gray-600);
  border-bottom: 1px solid var(--fb-divider);
  padding-bottom: 10px; margin-bottom: 24px;
}

.fb-form { display: flex; flex-direction: column; gap: 22px; }
.fb-form label { display: flex; flex-direction: column; gap: 8px; }
.fb-form label > span {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--fb-gray-600);
}
.fb-form input, .fb-form textarea {
  font-family: var(--fb-body); font-weight: 300; font-size: 16px; color: var(--fb-text);
  background: none; border: 0; border-bottom: 1px solid #b4b4b4;
  padding: 8px 0; outline: none; width: 100%;
}
.fb-form textarea { resize: vertical; }
.fb-form input:focus, .fb-form textarea:focus { border-bottom-color: var(--fb-text); }
.fb-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-form button {
  align-self: flex-start;
  background: none; border: 0; border-bottom: 1px solid var(--fb-text);
  padding: 0 0 5px; cursor: pointer; color: var(--fb-text);
  font-family: var(--fb-heading); font-weight: 300;
  font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
}
.fb-form button:hover { color: var(--fb-hover); border-bottom-color: var(--fb-hover); }

.fb-contact__thanks {
  font-family: var(--fb-heading); font-weight: 200;
  font-size: 24px; line-height: 1.4; letter-spacing: .04em;
}
.fb-contact__error { font-size: 15px; margin-bottom: 24px; }

.fb-contact__links {
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--fb-heading); font-weight: 300;
  font-size: 17px; letter-spacing: .12em; text-transform: uppercase;
}
.fb-contact__address {
  font-family: var(--fb-heading); font-weight: 300;
  font-size: 18px; line-height: 1.5; letter-spacing: .06em; margin-bottom: 16px;
}
.fb-map {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  border: 1px solid var(--fb-divider); overflow: hidden;
}
.fb-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) contrast(1.08);
}
.fb-map > a { position: absolute; inset: 0; display: block; }
.fb-contact__maplink {
  display: inline-block; margin-top: 12px;
  font-family: var(--fb-heading); font-weight: 300;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
}

/* --- biography ----------------------------------------------------------- */

.fb-bio { display: flex; flex-wrap: wrap; align-items: flex-start; }
.fb-bio__portrait {
  flex: 1 1 380px; min-width: 0; align-self: stretch; padding-bottom: 88px;
}
.fb-bio__portrait img {
  position: sticky; top: 0;
  width: 100%; height: min(100vh, 1000px);
  display: block; object-fit: cover; object-position: 50% 20%;
}
.fb-bio__body {
  flex: 1 1 480px; min-width: 0;
  padding: 64px clamp(32px, 4.5vw, 80px) 96px clamp(40px, 5vw, 96px);
}
.fb-bio__body > * { max-width: 62ch; }
.fb-bio__body h1 {
  font-size: clamp(34px, 5.4vw, 66px); letter-spacing: .05em; line-height: 1;
  margin-bottom: 44px;
}
.fb-bio__body h2 {
  font-family: var(--fb-heading); font-weight: 200;
  font-size: clamp(19px, 1.9vw, 25px); letter-spacing: .14em; text-transform: uppercase;
  margin: 64px 0 20px;
}
/* the years inside Exhibits, and any other third-level heading */
.fb-bio__body h3 {
  font-family: var(--fb-body); font-weight: 400;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--fb-gray-600);
  margin: 34px 0 10px;
}

/* the opening quotation: the first third-level heading on the page */
.fb-bio__body > h3:first-of-type {
  font-family: var(--fb-heading); font-weight: 200;
  font-size: clamp(18px, 1.9vw, 25px); line-height: 1.3; letter-spacing: .02em;
  text-transform: none; color: var(--fb-text);
  max-width: 44ch; margin: 0 0 48px;
}
.fb-bio__body > h3:first-of-type + h2 { margin-top: 0; }
.fb-bio__body h4 {
  font-family: var(--fb-body); font-weight: 400;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--fb-gray-600);
  margin: 34px 0 12px;
}
.fb-bio__body p { margin: 0 0 20px; }
.fb-bio__body ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.fb-bio__body li {
  font-size: 15px; line-height: 1.7; color: var(--fb-ink-800);
  padding: 7px 0; border-bottom: 1px solid var(--fb-divider);
}
.fb-bio__body li:last-child { border-bottom: 0; }
.fb-bio__body a { border-bottom: 1px solid rgba(18, 18, 18, .28); }

@media (max-width: 860px) {
  .fb-bio__portrait { flex: 1 1 100%; padding-bottom: 0; }
  .fb-bio__portrait img { position: static; height: 72vh; }
  .fb-bio__body { flex: 1 1 100%; padding: 48px var(--fb-gutter) 80px; }
}

/* --- category tabs ------------------------------------------------------- */

.fb-tabs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px;
  margin: 34px 0 6px; padding-bottom: 16px;
  border-bottom: 1px solid var(--fb-divider);
}
.fb-tabs__item {
  display: inline-flex; align-items: baseline;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fb-gray-600);
}
.fb-tabs__item:hover { color: var(--fb-text); }
.fb-tabs__item.is-current { color: var(--fb-text); }

/* --- index list ---------------------------------------------------------- */

.fb-index { display: block; }
.fb-index__row {
  display: grid;
  grid-template-columns: 72px 56px minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1fr) 24px;
  gap: 20px; align-items: center;
  padding: 14px 0; width: 100%;
  border-bottom: 1px solid var(--fb-divider);
  text-align: left;
}
.fb-index__row:hover { background: #ededed; }
.fb-index__thumb { width: 72px; height: 72px; object-fit: cover; background: var(--fb-surface); }
.fb-index__year { font-size: 12px; letter-spacing: .14em; color: var(--fb-gray-600); }
.fb-index__title {
  font-family: var(--fb-heading); font-weight: 300; font-size: 20px;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere;
}
.fb-index__venue { font-size: 12px; letter-spacing: .06em; color: var(--fb-gray-600); overflow-wrap: anywhere; }
.fb-index__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fb-gray-600); }
.fb-index__arrow { font-size: 13px; color: var(--fb-gray-500); text-align: right; }
@media (max-width: 760px) {
  .fb-index__row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .fb-index__year, .fb-index__venue, .fb-index__cat, .fb-index__arrow { display: none; }
}

/* --- news ---------------------------------------------------------------- */

.fb-news__lede { margin: 10px 0 48px; font-size: 15px; color: var(--fb-gray-600); }
.fb-news { display: flex; flex-direction: column; gap: 40px; }
.fb-news__item {
  display: flex; gap: 24px 32px; flex-wrap: wrap;
  border-top: 1px solid var(--fb-divider); padding-top: 28px;
}
.fb-news__media { flex: 1 1 260px; }
.fb-news__body { flex: 2 1 320px; }
.fb-news__title { text-transform: uppercase; letter-spacing: .07em; }
.fb-news__media { flex: 1 1 260px; min-width: 0; }
.fb-news__body { flex: 2 1 320px; min-width: 0; }
.fb-news__date { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--fb-gray-600); }
.fb-news__title {
  font-family: var(--fb-heading); font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .04em; line-height: 1.1;
  margin: 10px 0 14px;
}
.fb-news__text { font-size: 15px; line-height: 1.7; max-width: 62ch; }

/* --- footer -------------------------------------------------------------- */

.fb-footer {
  width: 100%;
  border-top: 1px solid var(--fb-divider);
  margin-top: 96px;
}
.fb-footer__inner {
  max-width: var(--fb-max); margin: 0 auto;
  padding: 28px var(--fb-gutter) 36px;
  display: flex; flex-wrap: wrap; gap: 20px 44px;
  align-items: baseline; justify-content: space-between;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--fb-gray-600);
}
.fb-footer__social { display: flex; flex-wrap: wrap; gap: 22px; }
.fb-footer__social a { color: var(--fb-gray-600); }
.fb-footer__social a:hover { color: var(--fb-text); }

/* --- quote --------------------------------------------------------------- */

.fb-quote {
  font-family: var(--fb-heading); font-weight: 200;
  font-size: clamp(20px, 2.2vw, 29px); line-height: 1.3; letter-spacing: .02em;
  max-width: 44ch; margin: 0;
}

/* --- black & white mode -------------------------------------------------- */

body.fb-bw img,
body.fb-bw .fb-video { filter: grayscale(1) contrast(1.04); }

/* --- suppress chrome the design does not have ---------------------------- */

.entry-meta, .entry-footer, .post-navigation, .posts-navigation,
.breadcrumbs, .widget-area, .sidebar, #comments, .comments-area,
.author-bio, .related-posts, .tags-links, .cat-links, .sharedaddy,
.wp-block-post-author, .wp-block-post-terms,
.site-footer .widget { display: none !important; }

.wp-block-image, .wp-block-gallery, figure { margin: 0; }
.fb-video figcaption,
.wp-block-embed figcaption,
.wp-block-video figcaption { display: none; }

figcaption {
  font-size: 12px; letter-spacing: .06em; color: var(--fb-gray-600); padding-top: 8px;
  text-align: left;
}
