/*
 * SeaPhotos custom PhotoSwipe 5 styling.
 * PhotoSwipe's core stylesheet is loaded from cdnjs before this file.
 */

.pswp {
  --pswp-bg: #111;
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #222;
  --pswp-error-text-color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.pswp__top-bar {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0)
  );
}

.pswp__button {
  width: 48px;
  height: 48px;
}

.pswp__button--arrow {
  width: 60px;
  height: 90px;
}

.pswp__counter {
  height: 48px;
  line-height: 48px;
  padding: 0 14px;
  font-size: 15px;
  text-shadow: 0 1px 2px #000;
}

.pswp__custom-caption {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 118px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 22px 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.pswp__custom-caption:empty {
  display: none;
}

.pswp__custom-caption i {
  font-style: italic;
}

.pswp__custom-caption a {
  color: #fff;
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .pswp__button {
    width: 52px;
    height: 52px;
  }

  .pswp__button--arrow {
    width: 54px;
    height: 82px;
  }

  .pswp__counter {
    height: 52px;
    line-height: 52px;
    padding-left: 12px;
  }

  .pswp__custom-caption {
    max-height: 165px;
    padding: 10px 14px 14px;
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
  }
}

/*
 * Short phone screens in landscape orientation need a much smaller caption
 * reserve so the photograph can use most of the available viewport height.
 */
@media screen and (orientation: landscape) and (max-height: 560px) and (max-width: 1000px) {
  .pswp__button {
    width: 44px;
    height: 44px;
  }

  .pswp__button--arrow {
    width: 50px;
    height: 70px;
  }

  .pswp__counter {
    height: 44px;
    line-height: 44px;
    padding-left: 10px;
    font-size: 14px;
  }

  .pswp__custom-caption {
    max-height: 76px;
    padding: 6px 12px 8px;
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pswp * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
