.gallery-template .gallery-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.gallery-share > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-share > ul > li + li {
  margin-left: 0;
}

.gallery-share > ul > li > a {
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .gallery-template .widget--photogallery .col--a {
    flex: 0 0 calc(100% - 400px);
    width: calc(100% - 400px);
    min-width: 0;
  }

  .gallery-template .widget--photogallery .col--b {
    box-sizing: border-box;
    flex: 0 0 400px;
    width: 400px;
  }

  .gallery-template .widget--photogallery figure {
    width: 100%;
    height: 495px;
    min-height: 495px;
    margin: 0;
  }

  .gallery-template .widget--photogallery figure img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}
