/* Flowerdew's of Bromyard */

:root {
  --orange: #CC6633;
  --text: #2A1206;
  --heading: #000;
  --yellow: #FFCC33;
  --gold: #FFCC00;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--orange);
  color: var(--text);
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */

.site-header { padding: 16px 16px 0; text-align: center; }

.logo { margin: 0; }
.logo img { display: block; margin: 0 auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.nav img { display: block; }

.rule {
  width: calc(100% - 32px);
  max-width: 710px;
  margin: 16px auto;
  border: 0;
  border-top: 2px solid var(--gold);
}

/* Content */

main {
  width: calc(100% - 32px);
  max-width: 710px;
  margin: 0 auto 20px;
  padding: 0 0 20px;
}
main::after { content: ""; display: block; clear: both; }

h1, h2 { color: var(--heading); line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 16px 0 8px; }
h2 { font-size: 1.375rem; margin: 28px 0 8px; }

.divider { border: 0; border-top: 2px solid var(--gold); margin: 24px 0; clear: both; }

.photo-right { float: right; margin: 16px 0 12px 20px; border-radius: 8px; }
/* The shop-front photo is an oval on a baked-in orange background: trim to the oval */
.photo-oval { border-radius: 0; clip-path: ellipse(44.5% 44.5% at 50% 50%); }

.signoff { font-style: italic; }

/* Gallery */

.gallery-intro { text-align: center; }

.gallery-open { display: block; cursor: zoom-in; }
.gallery-open img { display: block; margin: 0 auto; border-radius: 8px; }


.viewer {
  width: min(94vw, 900px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: var(--text);
}
.viewer::backdrop { background: rgba(30, 14, 6, 0.88); }

.viewer figure { margin: 0; padding: 64px 12px 0; text-align: center; }
.viewer img {
  display: block;
  margin: 0 auto;
  max-height: 72vh;
  width: auto;
  border-radius: 6px;
  touch-action: pan-y;
}
.viewer figcaption { padding: 10px 4px 0; }

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
}
.viewer button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.viewer-count { font-size: 0.9rem; }

.viewer .viewer-close { position: absolute; top: 10px; right: 12px; }

/* Footer */

.site-footer {
  padding: 0 16px 24px;
  color: #000;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.75rem;
  text-align: center;
}
.site-footer a { color: #000; }

/* Phones */

@media (max-width: 600px) {
  body { font-size: 1rem; }
  main { padding: 0 0 16px; }
  .photo-right { float: none; display: block; margin: 16px auto; }
  .nav .rose { display: none; }
  .nav li + li { margin-left: 6px; }
}
