/*!
 * Gallery Detail Style
 * Author: SSTA
 * Date: 2026-06-16
 */

/* ==============================================
   1. Container Settings
   ============================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}

#gallery_detail {
  padding: auto 20px;
  background: #f8f9fa;
}

/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 50px;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  .inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* ==============================================
   2. Section Header
   ============================================== */
/* --- PC Layout (1201px~) --- */
.detail_header {
  text-align: center;
  margin-bottom: 40px;
}

.detail_header h2 {
  font-size: 24px;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
  color: #444;
}

.detail_header .date {
  font-family: "Outfit", sans-serif;
  color: #aaa;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.section_nav {
  margin: 0 auto 45px;
  max-width: 950px;
  padding: 0 20px;
}

.section_nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

.section_nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  color: #4a5f70;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid #eef1f4;
  box-shadow: 0 2px 5px rgba(74, 95, 112, 0.05);
  transition: 0.3s;
}

@media (hover: hover) {
  .section_nav a:hover {
    background: #fcfbf9;
    border-color: #b89a5e;
    color: #b89a5e;
  }
}

.section_nav a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  transform: rotate(45deg);
  margin-left: 15px;
  margin-bottom: 2px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.section_nav a:hover::after {
  transform: translate(0, 2px) rotate(45deg);
  border-color: #b89a5e;
}

.section_header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.section_header:last-child {
  margin-bottom: 0;
}

.section_header .inner {
  background: #fff;
  max-width: 950px;
  margin: 0 auto;
  padding: 45px 35px;
  border-radius: 15px;box-shadow: 0 5px 15px rgba(74, 95, 112, 0.05);
}

.section_en {
  display: block;
  font-size: 13px !important;
  letter-spacing: 0.3em;
  line-height: 1;
  margin-bottom: 8px;
}

h3 {
  margin-bottom: 30px;
  font-size: 22px;
  text-align: center;
  color: #4a5f70;
  display: inline-block;
  width: 100%;
}


/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
  .detail_header {
    margin-bottom: 30px;
  }

  .detail_header h2 {
    font-size: 18px;
  margin-bottom: 5px;
  }

  .section_nav {
    margin: 0 auto 35px;
  }

  .section_nav ul {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .section_nav a {
    padding: 5px 10px;
    font-size: 13px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .section_nav a::after {
    margin-left: 6px;
  }

  .section_header {
    margin-bottom: 35px;
  }

  .section_header .inner {
    padding: 30px 25px !important;
    margin-bottom: 25px;
  }


.section_en {
  display: block;
  font-size: 13px !important;
  letter-spacing: 0.25em;
  line-height: 1;
  margin-bottom: 5px;
}

  h3 {
    font-size: 19px;
    margin-bottom: 15px;
  }
}


/* ==============================================
   3. Photo & Movie Section
   ============================================== */
/* --- PC Layout (1201px~) --- */
/* Photo Section */
.photo_grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 550px;
  margin: 0 auto;
}

.photo_grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.cover_photo {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

[data-fslightbox] {
  outline: none;
}

.photo_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 95, 112, 0.4);
  color: #fff;
  font-size: 110%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  opacity: 1;
  transition: 0.3s;
}

.cover_photo:hover .photo_overlay {
  font-size: 115%;
  background: rgba(74, 95, 112, 0.2);
}

.hidden_photo {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.hidden_photo img {
  display: block;
  width: 1px;
  height: 1px;
}

/* Movie Section */
.movie_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 950px;
  margin: 0 auto;
}

.movie_item {
  width: 100%;
}

.movie_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.movie_wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

.movie_item p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
}


/* YouTube embed CSS */
.yt {
  width: 100% !important;
  height: 100% !important;
}

.yt img.movie {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.yt:hover img.movie {
  opacity: 1;
}

.yt_play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.play_icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 0, 16, 0.4);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  color: #fff;
  font-size: 24px;
}

.play_icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.movie_label {
  display: none;
}

.yt:hover .play_icon {
  background: rgba(230, 0, 18, 0.6);
  transform: scale(1.05);
}

/* --- Tablet & SmallPC Layout (769~1200px) --- */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .section_header .inner {
    max-width: calc(100% - 10px);
    margin: 0 auto;
    padding: 35px 30px;
    box-sizing: border-box;
  }

  .movie_grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
  }
}
/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {

  .section_header .inner {
    padding: 35px 30px;
    box-sizing: border-box;
  }
  .photo_grid,
  .movie_grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .movie_item {
    width: 100% !important;
    margin-bottom: 30px;
  }

  .movie_item:last-child {
    margin-bottom: 0;
  }

  .movie_wrap {
    aspect-ratio: 16 / 9;
    width: 100% !important;
    height: auto;
  }

  .movie_wrap iframe {
    width: 100% !important;
    height: 100% !important;
  }

  .movie_item p {
    font-size: 15px;
  }

  .yt:hover .play_icon {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1);
  }
}
