/* Pebmarsh Community Pub Limited: static site. Look based on the old Twenty Seventeen WordPress theme. */
@font-face { font-family: "Libre Franklin"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/libre-franklin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/libre-franklin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/libre-franklin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/libre-franklin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/libre-franklin-800-normal.woff2) format("woff2"); }

:root {
  --text: #333; --heading: #222; --muted: #767676; --line: #eee;
  --header-bg: #fafafa; --box: #eee; --link: #222;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 300 1rem/1.66 "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #000; }
strong, b { font-weight: 600; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 2em; }

/* Header */
.site-header { background: var(--header-bg); padding: 2.5em 0 2em; }
.logo img { display: block; width: 110px; height: auto; margin-bottom: .6em; }
.site-title { margin: 0; font-weight: 800; font-size: 2.25rem; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; }
.site-title a { color: var(--heading); text-decoration: none; }
.site-description { margin: .1em 0 0; font-size: 1rem; color: var(--heading); }

/* Navigation */
.site-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; font-size: .875rem; font-weight: 600; position: relative; z-index: 10; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > .wrap > ul { display: flex; flex-wrap: wrap; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 1.25em 1.1em; text-decoration: none; color: var(--heading); }
.site-nav > .wrap > ul > li:first-child > a { padding-left: 0; }
.site-nav li.active > a, .site-nav a[aria-current] { color: var(--muted); }
.site-nav li ul { display: none; position: absolute; left: 0; top: 100%; min-width: 15em; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.site-nav li ul a { padding: .8em 1.1em; font-weight: 400; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.menu-toggle { display: none; }

/* Photos at the top of a page */
.hero { height: 0; padding-top: 60%; max-height: 80vh; background: center/cover no-repeat; }
@media (min-width: 900px) { .hero { padding-top: 0; height: 65vh; } }
body { overflow-x: hidden; }
.banner img { display: block; width: 100%; max-height: 60vh; object-fit: cover; }

/* Page content */
.content { max-width: 740px; padding-top: 3.5em; padding-bottom: 3em; }
.page-title { font-size: .875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); margin: 0 0 2.5em; }
.content h2, .content h3 { color: var(--heading); font-weight: 600; line-height: 1.4; }
.content p { margin: 0 0 1.5em; }
.has-background { padding: 1.25em 2.375em; }
.wp-block-image { margin: 0 0 1.5em; }
.wp-block-image figure, figure { margin: 0 0 1.5em; }
.aligncenter, .wp-block-image .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; max-width: 100%; }
.wp-block-image img { max-width: 100%; height: auto; }
figcaption { font-size: .8125rem; color: var(--muted); text-align: center; margin-top: .5em; line-height: 1.5; }
.wp-block-group { margin-bottom: 1.5em; }
.wp-block-columns { display: flex; gap: 2em; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 250px; }
.wp-block-button__link, .wp-block-file__button { display: inline-block; background: #222; color: #fff; padding: .6em 1.2em; border-radius: 3px; text-decoration: none; font-weight: 600; }
.wp-block-file { margin-bottom: 1.5em; }
.wp-block-separator, hr { border: 0; border-top: 1px solid #bbb; margin: 2em 0; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
td, th { border-bottom: 1px solid var(--line); padding: .5em; text-align: left; vertical-align: top; }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin: 0 0 2em; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f3f3f3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }

/* Committee */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2em 1.5em; }
.member { border-top: 5px solid #333; padding-top: 1em; font-size: .9rem; }
.member img { display: block; width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin: 0 auto 1em; }
.member h2 { font-size: 1.1rem; margin: 0; text-align: center; }
.member .job { text-align: center; color: var(--muted); font-weight: 600; margin: .2em 0 1em; }

/* Contact */
.contact-box { background: #fbecc1; padding: 1.5em 2.375em; margin-bottom: 1.5em; }
.contact-email { font-size: 1.25rem; font-weight: 600; margin: 0 !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5em 0 2em; font-size: .875rem; }
.funders { display: flex; flex-wrap: wrap; gap: 2em; align-items: center; margin-bottom: 1.5em; }
.funders img { max-width: 260px; flex: 1 1 200px; }
.footer-links { margin: 0 0 .5em; }
.small { color: var(--muted); font-size: .8125rem; margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 100; }
.lightbox img { max-width: 94vw; max-height: 86vh; box-shadow: 0 0 30px #000; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; line-height: 1; padding: .4em .6em; cursor: pointer; }
.lightbox .lb-close { top: 0; right: 0; }
.lightbox .lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1em; left: 0; right: 0; text-align: center; color: #ccc; font-size: .875rem; }

/* Phones */
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .site-header { padding: 1.5em 0 1.25em; }
  .logo img { width: 80px; }
  .site-title { font-size: 1.4rem; letter-spacing: .05em; }
  .menu-toggle { display: block; background: none; border: 0; font: inherit; font-weight: 600; padding: 1em 0; cursor: pointer; color: var(--heading); }
  .menu-toggle::before { content: "\2630\00a0\00a0"; }
  .site-nav > .wrap > ul { display: none; flex-direction: column; padding-bottom: 1em; }
  .site-nav.open > .wrap > ul { display: flex; }
  .site-nav a, .site-nav > .wrap > ul > li:first-child > a { padding: .6em 0; }
  .site-nav li ul { display: block; position: static; border: 0; box-shadow: none; min-width: 0; padding-left: 1em; }
  .site-nav li ul a { padding: .4em 0; }
  .content { padding-top: 2em; }
  .has-background, .contact-box { padding: 1em 1.25em; }
}
