/* Static copy of bradfordpopemcarthur.com. Sizes taken from the live Squarespace site at 1440px. */
:root { --ink: #222; --muted: #999; --line: #bbb; --gutter: 43px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 500 16px/2 "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .02em; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }

/* header */
header.site { display: flex; align-items: baseline; padding: var(--gutter); line-height: 1.1; }
.brand { color: var(--ink); font-size: 16px; font-weight: 400; }
.tagline { margin-left: 14px; color: #a6a6a6; font-size: 12px; font-weight: 400; }
header.site nav { margin-left: auto; display: flex; gap: 17px; }
header.site nav a { color: var(--muted); font-size: 16px; }
header.site nav a.on, header.site nav a:hover { color: var(--ink); }
.menu { display: none; }

/* page */
main { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) var(--gutter); }
main.wide { max-width: none; padding: 0; }
.banner { padding: 90px 0 120px; text-align: center; }
.banner h1 { margin: 0; color: #000; font-size: 22.5px; font-weight: 400; line-height: 36px; letter-spacing: .09em; }
.banner.has-img { position: relative; display: flex; align-items: center; justify-content: center; height: 215px;
  padding: 0; margin: 0 calc(50% - 50vw + var(--gutter)) 34px; overflow: hidden; }
.banner.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner.has-img h1 { position: relative; }

/* Squarespace 12-column layout */
.row { display: flex; margin: 0 -17px; }
.col { flex: 0 0 calc(var(--span) / 12 * 100%); min-width: 0; }
.col > .row { margin: 0; }
.blk { padding: 17px; }
.spacer { height: 34px; }
.fl-right, .fl-left { width: calc(var(--span) / 12 * 100%); }
.fl-right { float: right; } .fl-left { float: left; }
.row, .blk:has(hr), .blk:has(.spacer) { clear: both; }
.col::after { content: ""; display: block; clear: both; }

.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text p { margin: 0 0 1em; }
.text h1 { font-size: 25px; font-weight: 400; line-height: 40px; letter-spacing: .09em; margin: 0 0 16px; }
.text h2 { font-size: 20px; font-weight: 400; line-height: 32px; letter-spacing: .09em; margin: 16px 0; }
.text h3 { font-size: 17px; font-weight: 400; line-height: 28px; letter-spacing: .08em; margin: 16px 0; }
.text ul, .text ol { margin: 0 0 1em; padding-left: 1.2em; }
.text li p { margin: 0; }
hr { border: 0; height: 1px; background: var(--line); margin: 8px 0; }

figure { margin: 0; }
figure img { width: 100%; }
figcaption { margin-top: 12px; font-size: 13.2px; line-height: 22px; }
figcaption p { margin: 0; }

.quote { padding: 6%; text-align: center; }
.quote blockquote { margin: 0 0 27px; font-size: 22.5px; line-height: 1.2; letter-spacing: .03em; font-weight: 400; }
.quote figcaption { color: #888; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.btn-wrap { margin: 0; text-align: center; }
.btn { display: inline-block; padding: 21px 34px; background: var(--ink); color: #fff; font-size: 13px; line-height: 15px;
  letter-spacing: .16em; text-transform: uppercase; }
.btn:hover { color: #fff; background: #000; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* galleries */
.g-grid { display: grid; grid-template-columns: repeat(var(--per), 1fr); gap: 20px; }
.g-grid img { width: 100%; height: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
.g-slider { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.g-slider img { height: 500px; width: auto; max-width: none; scroll-snap-align: start; }
.g-show .stage { position: relative; aspect-ratio: 3 / 2; background: #f6f6f6; }
.g-show .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.g-show .slide.on { opacity: 1; }
.g-show .slide img { width: 100%; height: 100%; object-fit: contain; }
.g-show .prev, .g-show .next { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; background: rgba(0, 0, 0, .25); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.g-show .prev { left: 12px; } .g-show .next { right: 12px; }
.g-show .thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.g-show .thumbs button { padding: 0; border: 0; background: none; cursor: pointer; opacity: .6; }
.g-show .thumbs button.on, .g-show .thumbs button:hover { opacity: 1; }
.g-show .thumbs img { height: 64px; width: auto; }

/* index page (Artist in Residence) */
.index .tile { position: relative; display: block; height: calc(100vw / 2.3); overflow: hidden; }
.index .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.index .tile span { position: absolute; left: 35px; bottom: 40px; color: #fff; font-size: 15px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  header.site { flex-wrap: wrap; align-items: center; padding: 20px var(--gutter); }
  .tagline { order: 3; flex-basis: 100%; margin: 6px 0 0; text-transform: uppercase; }
  .menu { display: block; margin-left: auto; width: 28px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
  .menu span, .menu span::before, .menu span::after { display: block; height: 2px; background: var(--ink); position: relative; content: ""; }
  .menu span::before { position: absolute; top: -7px; width: 100%; } .menu span::after { position: absolute; top: 7px; width: 100%; }
  header.site nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 6px; margin: 16px 0 0; }
  header.site nav.open { display: flex; }
  .banner { padding: 40px 0 50px; }
  .row { display: block; margin: 0; }
  .fl-right, .fl-left { float: none; width: auto; }
  .blk { padding: 12px 0; }
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-slider img { height: 220px; }
  .index .tile { height: 60vw; }
  .index .tile span { left: 20px; bottom: 20px; }
}
