@charset "UTF-8";

body.page-illustration {
  background: #f1c258;
  color: #011e41;
}

body.page-illustration .nav-link::after {
  background-color: #011e41;
}

body.page-illustration .nav {
  background: #f1c258;
  transition: transform 0.4s ease, background-color 0.3s ease;
}

body.page-illustration .nav-link {
  color: #011e41;
}

body.page-illustration #custom-cursor {
  background-color: #011e41;
}

body.page-illustration.cursor-hover #custom-cursor {
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 2px solid #fff;
  margin: -15px 0 0 -15px;
}

body.page-illustration .footer {
  color: rgba(1, 30, 65, 0.3);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 92px 50px 60px;
}

img.illust-placeholder {
  background-color: rgba(1, 30, 65, 0.12);
}

.blog-item {
  display: block;
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.blog-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-item img,
.blog-item video {
  width: 100%;
  aspect-ratio: 1.414 / 1;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.blog-item:hover img,
.blog-item:hover video {
  opacity: 0.7;
}

.blog-title {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #011e41;
  text-align: left;
  width: 85%;
}

.blog-pager {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 50px 0;
}

.blog-pager-btn {
  background: none;
  border: none;
  color: rgba(1, 30, 65, 0.4);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  position: relative;
  transition: color 0.2s ease;
}

.blog-pager-btn:hover {
  color: #011e41;
}

.blog-pager-btn.active {
  color: #011e41;
}

.blog-pager-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background-color: #011e41;
}

.lightbox {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(241, 194, 88, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: #011e41;
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #011e41;
  font-size: 30px;
  background: none;
  border: none;
  cursor: none !important;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #011e41;
  font-size: 28px;
  background: none;
  border: none;
  cursor: none !important;
  padding: 20px 30px;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 74px 16px 40px;
    gap: 10px;
  }

  body.page-illustration .hamburger span {
    background: #011e41;
  }

  body.page-illustration .nav.menu-open {
    background: #000;
  }

  body.page-illustration .nav.menu-open .hamburger span {
    background: #fff;
  }

  body.page-illustration .nav.menu-open .logo img {
    filter: brightness(0) invert(1);
  }

  .blog-item .blog-title {
    font-size: 10px;
  }

  .blog-pager {
    padding-bottom: 30px;
  }
}
