#gallery.gallery {
  column-count: unset !important;
  column-gap: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 40px !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}

#gallery .gallery-column {
  flex: 0 0 calc((100% - 80px) / 3);
  max-width: calc((100% - 80px) / 3);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#gallery .gallery-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#gallery .gallery-item > a {
  display: block;
  width: 100%;
  text-decoration: none;
}

#gallery .gallery-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

@media screen and (max-width: 991px) {
  #gallery.gallery {
    max-width: 900px !important;
    gap: 28px !important;
  }
}

@media screen and (max-width: 991px) {
  #gallery .gallery-column {
    flex: 0 0 calc((100% - 28px) / 2);
    max-width: calc((100% - 28px) / 2);
    gap: 28px;
  }
}

@media screen and (max-width: 767px) {
  #gallery.gallery {
    display: block !important;
    max-width: 1100px !important;
    column-count: 1 !important;
    column-gap: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media screen and (max-width: 767px) {
  #gallery .gallery-column {
    display: block !important;
    max-width: none !important;
  }
}

@media screen and (max-width: 767px) {
  #gallery .gallery-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 54px !important;
  }
}

@media screen and (max-width: 767px) {
  #gallery .gallery-item > a {
    display: block !important;
    width: 100% !important;
  }
}

@media screen and (max-width: 767px) {
  #gallery .gallery-item > a img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 72vh !important;
    object-fit: contain !important;
  }
}

@media screen and (max-width: 767px) {
  #gallery .gallery-item .gallery-title {
    margin: 16px 0 0 !important;
    color: #bd893c !important;
    font-size: 1.26rem !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
  }
}

@media screen and (max-width: 767px) {
  #gallery .gallery-item .gallery-subtitle {
    display: block !important;
    margin: 11px 0 0 !important;
    color: #bd893c !important;
    font-size: 0.9rem !important;
    line-height: 1.26 !important;
    font-style: italic !important;
    text-align: left !important;
    opacity: 1 !important;
  }
}

@media screen and (max-width: 767px) {
  #gallery .gallery-item .gallery-item__share {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    margin-top: 6px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
}

