body {
  font-family: "Poppins", sans-serif;
  background-color: #272044;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-gap: 40px;
}

.grid-2-columns {
  grid-template-columns: 1fr 1fr;
}

.grid-3-columns {
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-3-columns-narrow-first {
  grid-template-columns: 1fr 2fr 2fr;
}

.card {
  background-color: #fff;
  margin: 30px 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 95%;
  overflow: hidden;
}

.card-header.grid {
  grid-row: 1;
  grid-gap: 0px;
}

.card-body {
  grid-row: 2;
  padding: 30px;
}

.card-footer {
  grid-row: 3;
  align-self: end;
  padding: 0 30px 20px;
}

.btn {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background-color: #462cb3;
  padding: 16px;
  display: block;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.embed {
  width: 100%;
  aspect-ratio: 1/1;
}

.instagram-responsive-embeds {
  width: 100%; /* Make the container take full available width */
  margin: 30px auto 0; /* Center the embed if max-width is applied */
  position: relative; /* Essential for positioning the iframe inside */
  padding-bottom: 127%; /* This creates the aspect ratio. Adjust as needed. */
  height: 0; /* Collapse the container's height initially */
  overflow: hidden; /* Hide any overflowing content */
  max-width: 540px; /* Optional: Match Instagram's suggested max-width if desired */
}

.instagram-responsive-embeds iframe,
.instagram-responsive-embeds .instagram-media {
  position: absolute; /* Position the iframe absolutely within the container */
  top: 0;
  left: 0;
  width: 100% !important; /* Force width to 100% of the container */
  height: 100% !important; /* Force height to 100% of the container */
  /* Remove any inline styles for width/height that might conflict */
  min-width: 200px !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.img-responsive {
  display: block;
  max-width: 100%;
  max-height: 630px;
  margin: auto;
}

.text-centered {
  text-align: center;
}

header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
    url("../images/james-r-adelaide_convention_center_cropped.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 200px 0;
}

header h1 {
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  margin: 30px 0;
}

header h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

header h3 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0;
}

header a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-top: 32px;
  padding: 16px 32px;
  color: #272044;
  background-color: #fff;
  border: none;
  border-radius: 1px;
}

main {
  background-color: #fff;
}

main h2 {
  color: #272044;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.3;
  margin: 0;
}

main h3 {
  color: #272044;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

main h4 {
  color: #272044;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

main h5 {
  color: #272044;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

main p {
  color: #272044;
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.7;
}

section {
  margin: 0 auto;
  padding: 60px 100px;
}

section.primary img {
  filter: drop-shadow(16px 16px 20px #272044);
}

section.secondary {
  background-color: #f8f8f8;
}

footer {
  background-image: linear-gradient(
      rgba(39, 32, 68, 0.85),
      rgba(39, 32, 68, 0.85)
    ),
    url("../images/james-r-adelaide_oval.jpg");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  color: #fff;
}

footer h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

footer p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.7;
}

footer ul {
  padding: 0;
}

footer li {
  list-style: none;
}

footer a {
  font-size: 13px;
  color: #fff;
  opacity: 0.7;
}

.attributes,
.attributes p,
.attributes a {
  font-size: 10px;
  font-style: italic;
  margin: 0;
  opacity: 0.7;
}

.attributes li {
  list-style: inside;
  margin-left: 20px;
}

@media (max-width: 1200px) {
  section.secondary .grid.grid-3-columns {
    grid-template-columns: 1fr;
  }

  section.grid-3-columns-narrow-first {
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
  }

  main h3 {
    font-size: 32px;
  }
}

@media (max-width: 960px) {
  header {
    padding: 80px 0;
    background-position: center;
  }

  header h1 {
    font-size: 48px;
  }

  header h2 {
    font-size: 20px;
  }

  main h3 {
    font-size: 28px;
  }

  header h3,
  main h4 {
    font-size: 20px;
  }

  main p {
    font-size: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-gap: 10px;
  }
  .card-header.grid-2-columns {
    grid-template-columns: 1fr 1fr;
  }
  section.grid-3-columns-narrow-first {
    grid-template-columns: 1fr;
  }

  .instagram-responsive-embeds {
    padding-bottom: 640px;
  }

  section.primary img {
    display: none;
  }

  section {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .instagram-responsive-embeds {
    padding-bottom: 120%;
  }
}
