/*
    Church Farm Gallery — closure page
    Preserves original branding (bg, logo, fonts)
*/

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: url("/static/images/bg.png");
  color: #222222;
  font: 400 112.5% "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif;
  font-family: "garamond-premier-pro", "Times New Roman", Times, serif;
  line-height: 1.5;
  min-height: 100vh;
}

#content_wrapper {
  border-top: 10px solid rgba(70, 66, 55, 0.8);
}

#content {
  max-width: 760px;
  padding: 0 20px;
  margin: 0 auto;
}

.layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.layout .copy {
  flex: 1 1 auto;
  min-width: 0;
}

.layout .photos {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.layout .photos figure {
  margin: 0;
  border: 8px solid rgba(70, 66, 55, 0.2);
}

.layout .photos img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .layout {
    flex-direction: column;
    gap: 30px;
  }
  .layout .photos {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: row;
  }
  .layout .photos figure {
    flex: 1 1 0;
    min-width: 0;
  }
}

header {
  border-bottom: 1px solid rgba(70, 66, 55, 0.2);
  margin-bottom: 40px;
  padding: 25px 0;
  text-align: center;
}

@media (max-width: 720px) {
  header {
    border: 0;
    padding: 25px 0 10px;
  }
}

#branding {
  display: inline-block;
}

#branding img {
  display: block;
  max-width: 100%;
  height: auto;
}

.svg #branding {
  background: url("/static/images/branding/branding.svg") no-repeat center;
  background-size: contain;
}

.svg #branding img {
  opacity: 0;
}

main {
  padding: 20px 0 60px;
}

h1 {
  color: #464133;
  font-family: "garamond-premier-pro", "Times New Roman", Times, serif;
  font-size: 1.8em;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 0.8em;
}

@media (max-width: 720px) {
  h1 {
    font-size: 1.5em;
  }
}

p {
  margin: 0 0 1.2em;
  font-size: 1.05em;
}

a {
  color: #464133;
  transition: background .3s ease;
}

a:hover,
a:focus {
  background-color: rgba(70, 66, 55, 0.15);
}

footer {
  border-top: 1px solid rgba(70, 66, 55, 0.2);
  margin: 40px 0 0;
  padding: 30px 0;
  text-align: center;
  font-size: 0.85em;
  color: #6a6450;
}
