.dark {
  padding: 0;
}

.wp-block-nk-awb {
  min-height: 800px;
  display: block;
}
.photoblocks-gallery {
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 0 20px 0 20px;
}
.wp-block-nk-awb:last-child {
  margin-bottom: 0;
}
.wp-block-heading {
  color: rgba(0, 0, 0, 0.8);
  font-size: 3.5rem;
  text-transform: uppercase;
  height: auto;
  margin-left: 20px;
}

.gallery-title {
  color: rgba(200, 200, 200, 0.8);
}

.wp-block-group.text-block {
  padding: 20px;
  width: 40%;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.main-wrapper {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

body > div > main > div > div > figure {
  width: 50%;
}

.image-caption {
  color: #000 !important;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  font-size: 2rem;
}

.intro-copy {
  color: #000;
  padding: 20px;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  font-size: 2rem;
  font-weight: bold;
  z-index: 1;
  letter-spacing: 1px;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 9px 10px 14px -8px rgba(0, 0, 0, 0.57);
  -moz-box-shadow: 9px 10px 14px -8px rgba(0, 0, 0, 0.57);
  box-shadow: 9px 10px 14px -8px rgba(0, 0, 0, 0.57);
}

body > div > main > div > figure > figcaption {
  position: relative;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
}

/* Default style for figures - Align all figures to the left */
.content figure {
  display: block; /* Makes each figure a block-level element */
  margin-bottom: 20px; /* Adds some space between figures */
}

.photoblocks-gallery .pb-blocks {
  display: flex !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 20px;
  height: auto !important;
}

.photoblocks-gallery .pb-block {
  overflow: hidden; /* Ensure the image doesn't overflow the container */
  position: relative !important;
  width: 300px !important;
  height: 300px !important;
  display: flex !important;
  align-items: flex-start; /* Center content vertically, if needed */
  justify-content: center;
  left: 0 !important;
  top: 0 !important;
}

.photoblocks-gallery .pb-block .pb-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover; /* Ensures the image fills the container while keeping its aspect ratio */
  object-position: center;
}

@media only screen and (max-width: 1024px) {
  .wp-block-group.text-block {
    width: 60%;
    font-size: 2rem;
  }
  .image-caption {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .content figure {
    float: none !important;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }
  .photoblocks-gallery .pb-blocks {
    display: flex !important;
    align-items: center; /* Center content vertically, if needed */
    justify-content: center;
    left: 0 !important;
    top: 0 !important;
    gap: 20px;
  }
  .photoblocks-gallery#photoblocks-1 .pb-block {
    position: static;
    display: inline-block;
    width: 100% !important;
    height: 200px !important;
    -webkit-box-shadow: 9px 10px 14px -8px rgba(0, 0, 0, 0.57);
    -moz-box-shadow: 9px 10px 14px -8px rgba(0, 0, 0, 0.57);
    box-shadow: 9px 10px 14px -8px rgba(0, 0, 0, 0.57);
  }

  .photoblocks-gallery .pb-block .pb-image {
    width: 100% !important;
    height: auto;
    object-fit: cover; /* Ensures the image fills the container while keeping its aspect ratio */
    object-position: center;
  }
  .wp-block-group.text-block,
  .image-caption {
    width: 100%;
    font-size: 2rem;
  }
  .wp-block-heading {
    font-size: 1.5rem;
    margin-left: 20px;
  }
  .wp-block-nk-awb {
    min-height: 500px;
    padding: 20px 0 20px 0;
  }
  #photoblocks-1 {
    width: 90% !important;
    padding: 0 5% 0 5%;
  }
}
