@charset "UTF-8";

/* 作品一覧 */
.works-list .work-image h2 span {
    white-space: normal;
}

.works-list .work-image h2 span em {
    font-style: normal;
    display:block;
}

/* 作品詳細 */
h1.page-title em { 
    font-family:din-2014, sans-serif; 
    font-size: 0.9rem; 
    font-style: normal;
    display:block;
}

/* ギャラリーを中央寄せ */
.picture-area .gallery {
    text-align: center;
}

/* 動画クリック範囲の指定 */
.picture-area a.play-popup-link {
  position: absolute;
    display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  text-align: center;
}

/* 動画再生ボタン */
.picture-area a.play-popup-link .play-popup-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  max-width: 100px;
  transform: translate(-50%, -50%);
  pointer-events: none; /* 画像は見た目だけでクリックを通す */
}

/* クリック青枠を消す */
.play-popup-link:focus,
.play-popup-btn:focus {
  outline: none;
}

/* 拡大時に画面の80%サイズにする */
.fancybox__slide img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
}
/* Fancybox のズームボタンを非表示 */
.fancybox__container [data-panzoom-action="toggleFull"] {
  display: none !important;
}

/* Fancybox のフルスクリーンボタンを非表示 */
.fancybox__container [data-fullscreen-action="toggle"] {
  display: none !important;
}

/* Fancybox の再生画面調整1 */
.f-html5video {
  width: 100%;
  height: auto;
  max-height: 90vh;
}

/* Fancybox の再生画面調整2 */
.has-html5video .f-html, 
.has-youtube .f-html, 
.has-vimeo .f-html {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  max-height: 90vh;
}