@charset "utf-8";

@import url("reset.css");

@font-face {
  font-family: Rye;
  src: url(../fonts/Rye-Regular.ttf) format('truetype');
}

@font-face {
  font-family: Champagne;
  src: url(../fonts/cac_champagne.ttf) format('truetype');
}

@font-face {
  font-family: Lobster;
  src: url(../fonts/Lobster-Regular.ttf) format('truetype');
}

html {
  background-color: whitesmoke;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

nav a img {
  width: 25px;
  height: 25px;
}

div, main, section, article, aside, footer {
  margin: 10px;
  padding: 5px;
}

header {
  background-color: aliceblue;
  margin: 2px 2px 0 2px;
}

nav {
  background-color: #ab1010;
  padding: 15px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

h4, h5, h6 {
  margin: 5px;
  padding: 3px;
  text-align: center;
  font-family: georgia, serif;
  font-size: 1.5em;
  color: rgb(155, 4, 4);
}

h4 {
  font-size: 1.5em;
  color: rgb(103, 97, 97);
  background-color: white;
  display: block;
  width: auto;
  max-width: 80%;
  margin: 0 auto;
}

h5 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: rgba(181, 2, 2, 0.85);
  background-color: black;
  display: block;
  width: fit-content;
  max-width: 92%;
  margin: 0 auto;
  border-radius: 8px;
  border: 7px groove rgba(150, 11, 11, 0.775);
}

h6 {
  font-size: 1.5em;
  color: rgb(103, 97, 97);
  background-color: rgb(252, 252, 252);
    border-radius: 8px;
  border: 7px groove rgba(150, 11, 11, 0.775);
  display: block;
  max-width: 80%;
  width: auto;
  margin: 0 auto;
  
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1em;
  /* Site-wide background (images path is relative to this CSS file) */
  background-image: url('../images/BEMgallery/atwork.jpg');
  background-color: #333333;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: #1c1b1b;
  margin: 0;
}

header h1 {
  font-family: Rye, Georgia, serif;
  font-size: 4em;
}

h2 {
  font-family: Lobster, Georgia, serif;
  font-size: 3em;
}

h3 {
  font-family: Champagne, Arial, sans-serif;
  font-size: 2em;
  float: center;
}

p, li {
  line-height: 1.5em;
}

p2 {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  line-height: 1.6;   
  text-align: center; 
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: rgb(147, 4, 4); 
  background-color: white; 
  display: block;
  max-width: 80%;
  width: auto;
  margin: 0 auto; 
}

p2 a {
  color: #8b0000;
  font-weight: 700;
  text-decoration: underline;
}

p2 a:hover {
  color: #c11717;
}

.facebook-link {
  display: inline-block;
  margin: 8px 6px;
  padding: 8px 14px;
  background-color: rgb(165, 90, 90);
  border: 2px solid black;
  border-radius: 6px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.35);
  color: #111;
  text-decoration: none;
}

.facebook-link:hover {
  background-color: rgb(191, 109, 109);
  color: #000;
}

p3 {
  font-size: clamp(1.1rem, 3vw, 2rem);
  line-height: 1.6;   
  text-align: center; 
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: rgb(253, 249, 249); 
  background-color: rgb(100, 39, 39); 
  display: block;
  width: auto;
  margin: 0 auto; 
   text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}

nav a {
  font-weight: 900;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: rgb(3, 3, 3);
  text-decoration: none;
  padding: 10px 14px;
  background-color: rgb(165, 90, 90);
  border: 2px solid black;
  border-radius: 5px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.15);
  color: rgb(255, 255, 255);
  border-color: rgb(50, 50, 50);
}

ul > li {
  list-style-type: square;
  list-style-position: inside;
}

nav li {
  list-style-type: none;
}

.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.Top {
  margin: 10px 0;
  padding: 10px;
  text-align: center;
  display: flow-root;
}

.Top.index-top {
  display: flow-root;
  text-align: left;
  gap: 12px;
}

.Top.index-top .top-image {
  width: 45%;
  margin: 0;
}

.Top.index-top .top-image-new {
  width: 36%;
}

.Top.index-middle-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.Top.index-middle-row .top-image {
  width: 31%;
  margin: 0;
  border: 7px groove rgba(150, 11, 11, 0.775);
  border-radius: 8px;
  box-sizing: border-box;
}

.Top.index-middle-row .top-image-new {
  width: 31%;
}

.Top.index-middle-row .right-image {
  width: 20%;
  flex: 0 0 20%;
  max-width: 20%;
  height: auto;
}

/* Slightly larger variant for middle-row images */
.Top.index-middle-row .top-image-larger {
  width: 31%;
  flex: 0 0 31%;
  max-width: 31%;
  height: auto;
}

.Top .top-image {
  width: 90%;
  max-width: 540px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Shared top logo style across pages */
.logo-top-image {
  float: left;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px;
  border-radius: 8px;
  margin: 0;
}

.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin: 20px;
  flex-wrap: wrap;
}

.card {
  background: rgba(158, 121, 121, 0.95);
  padding: 18px;
  border-radius: 8px;
  border: 6px solid rgb(71, 2, 2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 12px;
  background-color: rgba(118, 70, 70, 0.95);
  color: rgb(206, 202, 202);
  padding: 10px;
 
}

.card-link {
  display: inline-block;
  color: #0366d6;
  text-decoration: none;
  font-weight: 600;
}

.card-link:hover {
  text-decoration: underline;
}

.bottom-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.bottom-image {
  width: calc((100% - 40px) / 3);
  max-width: 400px;
  height: auto;
  display: block;
  object-fit: contain;
}

.centered-image {
  width: calc((100% - 40px) / 2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .Top.index-top {
    text-align: center;
  }

  .logo-top-image {
    float: none;
    margin: 0 auto;
  }

  .Top.index-top .top-image {
    width: min(100%, 480px);
  }

  .Top.index-middle-row {
    flex-wrap: wrap;
  }

  .Top.index-middle-row .top-image,
  .Top.index-middle-row .top-image-new,
  .Top.index-middle-row .top-image-larger {
    width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }

  h4,
  h6,
  p2 {
    max-width: 92%;
  }
}

@media (max-width: 640px) {
  body {
    background: none;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../images/BEMgallery/atwork.jpg');
    background-color: #333333;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
  }

  nav {
    padding: 10px;
  }

  nav ul {
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  nav a {
    width: auto;
    justify-content: center;
    padding: 8px 12px;
    font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  }

  .Top.index-middle-row .top-image,
  .Top.index-middle-row .top-image-new,
  .Top.index-middle-row .top-image-larger {
    width: calc((100% - 16px) / 3);
    flex: 0 0 calc((100% - 16px) / 3);
    max-width: calc((100% - 16px) / 3);
  }

  .card {
    padding: 14px;
  }

  .centered-image,
  .bottom-image {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .bottom-image {
    width: 100%;
  }

  .Top.index-middle-row {
    flex-direction: column;
    align-items: center;
  }

  .Top.index-middle-row .top-image,
  .Top.index-middle-row .top-image-new,
  .Top.index-middle-row .top-image-larger {
    width: 90%;
    flex: 0 0 auto;
    max-width: 400px;
  }
}

