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

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


#gallery {
  padding: auto 20px;
}

/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
  #gallery {
  padding: auto 15px;
  }
}

/* ==============================================
   2. Year Title & Accordion
   ============================================== */

.year_archive {
  margin-bottom: 80px;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.3s ease;
}

.year_archive:last-of-type {
  margin-bottom: 0;
}

.year_content_inner {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}

.year_archive[open] .year_content_inner {
  grid-template-rows: 1fr;
}

.year_title {
  color: #4a5f70;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 35px;
  padding-left: 15px;
  border-left: 4px solid #b89a5e;
  position: relative;
}

.year_title::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -27px;
  width: 100%;
  height: 2px;
  background-color: #4a5f70;
}

summary.year_title {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
  transition: color 0.3s ease;
}

@media (hover: hover) {
  summary.year_title:hover {
    color: #b89a5e;
  }
}

summary.year_title::-webkit-details-marker {
  display: none;
}

summary.year_title::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  transform: translateY(-80%) rotate(45deg);
  transition: transform 0.3s;
}

details[open] summary.year_title::after {
  transform: translateY(-20%) rotate(-135deg);
}

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

  .year_title {
    font-size: 18px;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 3px solid #b89a5e;
  }

  .year_title::before {
    left: -3px;
    width: calc(100% + 3px);
    bottom: -21px;
    height: 2px;
  }
}

/* ==============================================
   3. Gallery Container
   ============================================== */
/* --- PC Layout (1201px~) --- */
.gallery_container {
  display: grid;
  gap: 30px;
  margin: 25px auto 40px auto;
  max-width: 950px;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
}

/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
  .gallery_container {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 20px auto 30px;
    overflow: visible;
  }
}

/* ==============================================
   4. Event Card
   ============================================== */
/* --- PC Layout (1201px~) --- */
.event_card {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #F2F8FD;
  box-shadow: 0 7px 20px rgba(74, 95, 112, 0.1);
  padding: 20px;
  transition: 0.3s ease;
}

.event_card a {
  text-decoration: none;
  color: #333;
  display: block;
}

@media (hover: hover) {
  .event_card a:hover .thumb_wrap img {
    transform: scale(1.05);
  }

  .event_card:hover {  
    box-shadow: 0 10px 25px rgba(74, 95, 112, 0.1);
  }
}

.thumb_wrap {
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 4px;
}

.thumb_wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #f0f0f0;
  display: block;
  transition: transform 0.4s ease;
}

.event_card h3 {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  transition: color 0.3s ease;
}

.event_card a:hover h3 {
  color: #b89a5e;
}

.event_card .date {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: #aaa;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 4px;
  margin-left: 2px;
}

/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
.event_card {
  padding: 25px 21px 22px;
}

#gallery, 
.year_content_inner {
  overflow: visible !important;
}
}