@charset "utf-8";
/* CSS Document */
/* =========================
lightbox.css
Bootstrap 5 正式版
========================= */

/* ===== Gallery ===== */
.ec-lbgallery{
  --ec-thumb-ratio: 1 / 1;
}

.ec-lbgallery[data-ratio="1x1"]{ --ec-thumb-ratio: 1 / 1; }
.ec-lbgallery[data-ratio="4x3"]{ --ec-thumb-ratio: 4 / 3; }
.ec-lbgallery[data-ratio="3x4"]{ --ec-thumb-ratio: 3 / 4; }

.ec-lbgallery .row{
  margin: 0;
}

.ec-lbgallery .col{
  padding: 0;
}

.ec-lbgallery-item{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ec-thumb-ratio);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #111;
  overflow: hidden;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  line-height: 0;
}

.ec-lbgallery-item img{
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  vertical-align: top;
  transition: transform .35s ease;
}

.ec-lbgallery-item:hover img,
.ec-lbgallery-item:focus-visible img{
  transform: scale(1.03);
}

.ec-lbgallery-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.14);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.ec-lbgallery-item:hover::after,
.ec-lbgallery-item:focus-visible::after{
  opacity: 1;
}

/* ===== Lightbox ===== */
.ec-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.ec-lightbox.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ec-lightbox-dialog{
  position: relative;
  width: auto;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.ec-lightbox-body{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: 100%;
}

.ec-lightbox-stage{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

.ec-lightbox-media{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  min-width: 240px;
  min-height: 160px;
}

.ec-lightbox-img{
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ec-lightbox-img.is-hide{
  display: none;
}

.ec-lightbox-video{
  display: none;
  width: min(92vw, 1400px);
  max-width: min(92vw, 1400px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.ec-lightbox-video.is-show{
  display: block;
}

.ec-lightbox-video iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ec-lightbox-caption{
  display: block;
  width: 100%;
  max-width: 100%;
  background:transparent;
  color: #fff;
  padding: 16px 18px;
  margin-top: 0;
  border-radius: 0;
  text-align: right;
  box-sizing: border-box;
}

.ec-lightbox-caption.is-hidden{
  display: none;
}

.ec-lightbox-title{
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.ec-lightbox-title:empty{
  display: none;
}

.ec-lightbox-desc{
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.86);
}

.ec-lightbox-desc:empty{
  display: none;
}

.ec-lightbox-title:empty + .ec-lightbox-desc{
  margin-top: 0;
}

.ec-lightbox-close{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100001;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.ec-lightbox-close:hover{
  background: rgba(255,255,255,.22);
}

.ec-lightbox-nav{
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  line-height: 1;
  transition: background .25s ease;
}

.ec-lightbox-nav:hover{
  background: rgba(0,0,0,0);
}

.ec-lightbox-prev{
  left:-15%;
  width: 18%;
  height: 100%;
}

.ec-lightbox-next{
  right: -15%;
  width: 18%;
  height: 100%;
}

.ec-lightbox-nav.is-hidden{
  display: none;
}

.ec-lightbox-nav span{
  display: block;
	font-size: 75px;
  line-height: 1;
  transform: translateY(-1px);
}

body.ec-lightbox-lock{
  overflow: hidden;
}

@media (max-width: 767.98px){
  .ec-lightbox{
    padding: 10px;
  }

  .ec-lightbox-dialog{
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .ec-lightbox-media{
    max-height: 68vh;
    min-width: 180px;
    min-height: 120px;
  }

  .ec-lightbox-img{
    max-width: calc(100vw - 20px);
    max-height: 68vh;
  }

  .ec-lightbox-video{
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .ec-lightbox-caption{
    background: #000;
    color: #fff;
    padding: 14px 12px;
    text-align: left;
    border-radius: 0;
  }

  .ec-lightbox-title{
    font-size: 15px;
  }

  .ec-lightbox-desc{
    font-size: 13px;
    color: rgba(255,255,255,.82);
  }

  
	.ec-lightbox-close{
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    font-size: 26px;
  }

  .ec-lightbox-prev,
  .ec-lightbox-next{
    width: 12%;
		text-shadow: 0 0 5px rgba(0,0,0,0.5)
  }

	.ec-lightbox-prev{
  left:0;
}

.ec-lightbox-next{
  right:0;
}

	
  .ec-lightbox-nav{
    font-size: 30px;
  }
}