/* Color Palette */
/* Red-ish primary */
/* Amber */
/* Dark grey */
/* Slightly lighter grey */
/* White text on primary */
/* Black text on secondary */
/* White text on background */
/* White text on surface */
/* Fonts */
/* Card / Border Radius */
/* Breakpoints */
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Cinzel", serif;
  min-height: 100%;
  background-color: #000005;
  color: #fff;
}

a {
  text-decoration: none;
  color: #8a0909;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: #fff;
}

img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

html, body {
  overflow-x: hidden;
}

.small {
  font-size: 0.6em !important;
}

/* ============================= */
/* Navbar base                   */
/* ============================= */
.navbar {
  height: 60px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .container {
  height: 100%;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: 95%;
  max-width: 1200px;
}

/* Brand */
.navbar-brand a {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

/* Navbar links */
.navbar-links {
  position: relative;
}

/* Desktop menu */
.navbar-links ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  position: relative;
  margin-right: 20px;
}

.navbar-links li:last-child {
  margin-right: 0;
}

.navbar-links li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 0;
  display: block;
}

.navbar-links li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #9a022e;
  transition: width 0.3s ease;
}

.navbar-links li a:hover {
  color: #ff416c;
}

.navbar-links li a:hover::after {
  width: 100%;
}

/* Dropdown */
.navbar-links li.dropdown .dropdown-content {
  display: flex;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 0;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.navbar-links li.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-links li.dropdown .dropdown-content a {
  padding: 12px 18px;
  color: #fff;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.navbar-links li.dropdown .dropdown-content a:hover {
  background: rgba(154, 2, 46, 0.25);
  padding-left: 25px;
}

.navbar-links li.dropdown:hover .dropdown-content {
  display: flex;
}

/* Hamburger toggle */
.menu-toggle {
  display: none; /* desktop hidden */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: white;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
}

.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================= */
/* Mobile Navbar                 */
/* ============================= */
@media (max-width: 768px) {
  /* Make container full width */
  .navbar .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }
  /* Hamburger button */
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1100;
  }
  /* Mobile menu */
  .navbar-links ul {
    position: fixed;
    top: 60px; /* navbar height */
    left: 0;
    width: 100vw;
    background: rgba(35, 34, 34, 0.85);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    list-style: none;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    z-index: 10000;
  }
  .navbar-links ul.active {
    max-height: 400px; /* adjust as needed */
  }
  .navbar-links li {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  .navbar-links li a {
    display: block;
    width: 100%;
    color: white;
    font-size: 1.1rem;
  }
  /* Mobile dropdown */
  .dropdown-content {
    position: relative;
    box-shadow: none;
    display: none;
    background: transparent;
    padding-left: 0;
  }
  .dropdown.open .dropdown-content {
    display: block;
  }
  /* Mobile nested dropdowns */
}
@media (max-width: 768px) and (max-width: 768px) {
  .navbar-links li.dropdown .dropdown-content {
    display: none; /* hidden by default */
    position: relative; /* stack inside parent */
    background: transparent;
    flex-direction: column;
    padding-left: 0;
  }
  .navbar-links li.dropdown.open > .dropdown-content {
    display: flex; /* show when parent li has .open */
  }
}
/* Site-wide container */
.container {
  max-width: 1200px; /* same as before */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .site-container {
    padding: 0 10px;
  }
  .parallax {
    min-height: 60vh;
  }
}
.site-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.button {
  background-color: #8a0909;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background-color: #FFC107;
}

.card,
.blog-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 9, 9, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ============================= */
/* Image                         */
/* ============================= */
.blog-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.blog-card:hover .blog-card-image img,
.blog-card.active .blog-card-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ============================= */
/* Content                       */
/* ============================= */
.blog-card-content {
  padding: 1.2rem;
}

.blog-card-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.blog-card-content h3 a {
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-content h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #8a0909;
  transition: width 0.3s ease;
}

.blog-card-content h3 a:hover {
  color: #f12222;
}

.blog-card-content h3 a:hover::after {
  width: 100%;
}

.blog-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ============================= */
/* Mobile                        */
/* ============================= */
@media (max-width: 768px) {
  .blog-card {
    margin-bottom: 25px;
  }
  .blog-card-image {
    height: 180px;
  }
}
/* ============================= */
/* Blog Page Layout              */
/* ============================= */
.blog-page {
  padding: 30px 20px;
}

/* Two column wrapper */
.blog-content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Main posts column */
.blog-posts {
  flex: 3;
  min-width: 300px;
}

/* ============================= */
/* Sidebar                       */
/* ============================= */
.blog-sidebar {
  flex: 1;
  min-width: 220px;
  padding: 1.25rem;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Sidebar headings */
.blog-sidebar h3 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

/* ============================= */
/* Tags                          */
/* ============================= */
.blog-sidebar .tag-item {
  display: inline-block;
  margin: 0.2rem 0.4rem 0.2rem 0;
}

.blog-sidebar .tag-item a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-sidebar .tag-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #8a0909;
  transition: width 0.3s ease;
}

.blog-sidebar .tag-item a:hover {
  color: #f12222;
}

.blog-sidebar .tag-item a:hover::after,
.blog-sidebar .tag-item a.active::after {
  width: 100%;
}

.blog-sidebar .tag-item a.active {
  color: white;
  font-weight: 600;
}

/* ============================= */
/* Search                        */
/* ============================= */
.blog-sidebar input[type=search],
.blog-sidebar input[type=text] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.blog-sidebar input:focus {
  outline: none;
  border-color: #8a0909;
  background: rgba(255, 255, 255, 0.06);
}

/* ============================= */
/* Pagination                    */
/* ============================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* ============================= */
/* Mobile                        */
/* ============================= */
@media (max-width: 768px) {
  .blog-content-wrapper {
    flex-direction: column;
  }
  .blog-sidebar {
    order: -1;
    width: 100%;
    margin-bottom: 20px;
  }
  .blog-posts {
    order: 0;
  }
}
.cover-block {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  height: 250px;
}

.cover-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: filter 1s ease, transform 1s ease;
  filter: grayscale(100%);
  z-index: 1;
}

.cover-block__inner-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 1rem;
  /*
     Fade only behind the text,
     not across the whole image
  */
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0) 75%);
}

.cover-block:hover .cover-image {
  filter: grayscale(0%);
  transform: translate(-50%, -50%) scale(1.03);
}

.featured-posts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.featured-post {
  position: relative;
  flex-basis: calc(50% - 10px);
  margin-bottom: 10px;
  margin-right: 10px;
  height: 350px;
  overflow: hidden;
}

.featured-post img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  transition: filter 1s ease, transform 1s ease;
  filter: grayscale(100%);
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.featured-post:hover .overlay-container {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.featured-post:hover img {
  filter: grayscale(0%);
}

@media (max-width: 600px) {
  .featured-post {
    flex-basis: 100%;
    margin-right: 0;
  }
}
.parallax {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url("/assets/images/background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 35%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0) 100%);
}

.parallax-content {
  position: relative;
  color: #fff;
  text-align: center;
  z-index: 1;
}

.jumbotron {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin-bottom: 40px;
}

.jumbotron img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: grayscale(100%);
  transition: filter 2s ease;
}

.jumbotron:hover img {
  filter: grayscale(0%);
}

.jumbotron-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.jumbotron-content {
  max-width: 750px;
  color: white;
}

.jumbotron h1 {
  margin-bottom: 10px;
}

.jumbotron p {
  opacity: 0.9;
}

/* Archive Page */
.archive-year {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
}

.post-item {
  position: relative;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid rgba(128, 128, 128, 0.3);
  transition: border-color 0.3s ease, border-width 0.3s ease;
}

.post-item-title a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-item-excerpt {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
  font-size: 0.9rem;
}

.post-item:hover {
  border-left-width: 8px;
  border-color: #9a022e !important;
}

.post-item:hover .post-item-excerpt {
  max-height: 100px;
  opacity: 1;
}

.post-item:hover .post-item-title a {
  color: #9a022e;
}

.archive-tags .tag-item {
  padding: 1px 3px;
  border-radius: 2px;
  margin-right: 5px;
  display: inline-block;
}

.archive-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.archive-posts {
  flex: 1 1 60%;
  min-width: 280px;
}

.archive-search {
  flex: 1 1 35%;
  min-width: 220px;
}

@media (max-width: 768px) {
  .archive-container {
    flex-direction: column; /* stack vertically */
  }
  .archive-search {
    order: -1; /* move to top */
    margin-bottom: 20px; /* spacing from posts */
  }
  .archive-posts {
    order: 0; /* normal order */
  }
}
.search-article input[type=search] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: rgba(128, 128, 128, 0.1);
  border: 1px solid rgba(128, 128, 128, 0.1);
  color: #fff;
}

#search-results a {
  display: block;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#search-results:not(:empty) a {
  opacity: 1;
  transform: translateY(0);
}

#search-results a:hover {
  color: #9a022e;
  text-decoration: underline;
  border-bottom-width: 2px;
}

/* Pagination wrapper */
.pagination {
  display: flex;
  justify-content: center; /* centers the group */
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
}

/* Buttons */
.pagination a {
  display: inline-block;
  min-width: 140px; /* keeps button widths consistent */
  text-align: center;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.06);
  color: inherit;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

/* hover effect */
.pagination a:hover {
  background-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* invisible placeholder keeps spacing stable */
.pagination .spacer {
  visibility: hidden;
  min-width: 140px;
}

@media (max-width: 768px) {
  .pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pagination a,
  .pagination .spacer {
    width: 100%;
    min-width: 0;
  }
}
/* Blank Block */
.blank-block {
  height: 150px;
  position: relative;
}

/* Swiper Pagination Bullets */
.swiper-pagination-bullet {
  width: 12px !important; /* Larger bullet size */
  height: 12px !important;
  background-color: #808080 !important; /* Inactive bullets */
  opacity: 0.7 !important;
  margin: 0 6px !important; /* Spacing between bullets */
  border-radius: 50% !important; /* Circle shape */
  transition: all 0.3s ease !important;
}

/* Active Bullet */
.swiper-pagination-bullet-active {
  background-color: #9a022e !important; /* Active bullet in red */
  width: 14px !important; /* Slightly larger for emphasis */
  height: 14px !important;
  opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #9a022e !important;
}

.featured-swiper {
  width: 100%;
}

.featured-swiper .swiper-slide {
  height: 300px;
}

.featured-swiper .cover-block {
  height: 300px;
}

.featured-swiper {
  padding-bottom: 2rem;
}

.featured-swiper .swiper-pagination {
  position: relative;
  margin-top: 1rem;
}

.featured-swiper .swiper-pagination-bullet {
  opacity: 0.6;
}

.featured-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Typewriter Effect */
.typewriter p {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.typewriter p:nth-child(2) {
  animation-delay: 1.5s; /* Adjust delay as needed */
}

.typewriter p:nth-child(3) {
  animation-delay: 3s; /* Adjust delay as needed */
}

.typewriter p:nth-child(4) {
  animation-delay: 4.5s; /* Adjust delay as needed */
}

.typewriter p:nth-child(5) {
  animation-delay: 6s; /* Adjust delay as needed */
}

.typewriter p:nth-child(6) {
  animation-delay: 7.5s; /* Adjust delay as needed */
}

.typewriter p:nth-child(7) {
  animation-delay: 10s; /* Adjust delay as needed */
}

.typewriter p:nth-child(8) {
  animation-delay: 12s; /* Adjust delay as needed */
}

.typewriter p:nth-child(9) {
  animation-delay: 13s; /* Adjust delay as needed */
}

/* Typewriter2 Effect */
.typewriter2 p {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.typewriter2 p:nth-child(1) {
  animation-delay: 13s; /* Adjust delay as needed */
}

.typewriter2 p:nth-child(2) {
  animation-delay: 14s; /* Adjust delay as needed */
}

.typewriter2 p:nth-child(3) {
  animation-delay: 15.5s; /* Adjust delay as needed */
}

.typewriter2 p:nth-child(4) {
  animation-delay: 17s; /* Adjust delay as needed */
}

.typewriter2 p:nth-child(5) {
  animation-delay: 18.5s; /* Adjust delay as needed */
}

.typewriter2 p:nth-child(6) {
  animation-delay: 20s; /* Adjust delay as needed */
}

.typewriter2 p:nth-child(7) {
  animation-delay: 21.5s; /* Adjust delay as needed */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  aspect-ratio: 1/1;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover,
.gallery-item.active {
  transform: translateY(-4px);
  border-color: rgba(138, 9, 9, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover img,
.gallery-item.active img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ============================= */
/* Gallery Overlay               */
/* ============================= */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.overlay h3 {
  margin: 0;
  color: white;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover .overlay,
.gallery-item.active .overlay {
  opacity: 1;
}

/* ============================= */
/* Responsive                    */
/* ============================= */
@media (max-width: 768px) {
  .gallery-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}
@media (max-width: 480px) {
  .gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* ============================= */
/* Archive Tags                  */
/* ============================= */
.archive-tags {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}
.archive-tags h3 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.archive-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive-tags .tag-item {
  margin: 0;
}
.archive-tags .tag-item a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}
.archive-tags .tag-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #8a0909;
  transition: width 0.3s ease;
}
.archive-tags .tag-item a:hover {
  color: #f12222;
}
.archive-tags .tag-item a:hover::after, .archive-tags .tag-item a.active::after {
  width: 100%;
}
.archive-tags .tag-item a.active {
  color: white;
  font-weight: 600;
}

.tag-item a.active::before {
  content: "++ ";
}

/* ============================= */
/* Gallery Modal                 */
/* ============================= */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(20, 20, 20, 0.92), rgba(0, 0, 0, 0.97));
  backdrop-filter: blur(4px);
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  filter: none;
  transform: none;
}

/* ============================= */
/* Modal Controls                */
/* ============================= */
.gallery-close,
.gallery-prev,
.gallery-next {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(138, 9, 9, 0.25);
  border-color: rgba(138, 9, 9, 0.5);
}

.gallery-close {
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  font-size: 3rem;
}

.gallery-prev,
.gallery-next {
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 80px;
  font-size: 3rem;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-text-block {
  flex: 0 0 100%;
  width: 100%;
  max-width: 800px;
  margin: 5rem auto;
  text-align: center;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.image-modal.open {
  display: flex;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

.story-sidebar {
  position: fixed;
  top: 140px;
  right: 2rem;
  width: 220px;
  z-index: 100;
}

.story-progress {
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.story-progress-fill {
  width: 0%;
  height: 100%;
  background: #8a0909;
}

.story-sidebar ul {
  list-style: none;
  padding: 0;
}

.story-sidebar li {
  margin-bottom: 0.6rem;
}

.story-sidebar a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: 0.3s;
}

.story-sidebar a.active {
  color: white;
  font-weight: bold;
}

@media (max-width: 1200px) {
  .story-sidebar {
    display: none;
  }
}
.story-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.story-nav a:hover,
.story-nav a.active {
  color: #8a0909;
  transform: translateX(5px);
}

.story-nav a.completed {
  opacity: 0.45;
}

.story-nav a.active {
  opacity: 1;
  color: #8a0909;
}

.suggestion-sidebar {
  position: fixed;
  top: 140px;
  left: 2rem;
  width: 220px;
  z-index: 100;
}
.suggestion-sidebar h4 {
  margin-bottom: 1rem;
}

.suggestion-nav {
  display: flex;
  flex-direction: column;
}

.suggestion-item {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-bottom: 0.9rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.suggestion-item:hover {
  color: #8a0909;
  transform: translateX(5px);
}

.suggestion-title {
  display: block;
  line-height: 1.35;
}

.suggestion-time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

@media (max-width: 1400px) {
  .suggestion-sidebar {
    display: none;
  }
}
.pict-display {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid rgba(180, 180, 120, 0.4);
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
  font-family: monospace;
  position: relative;
}

.pict-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.03) 4px);
  pointer-events: none;
}

.pict-header {
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 2rem;
}

.pict-display h1 {
  text-align: center;
  font-size: 4rem;
}

.pict-body {
  max-width: 700px;
  margin: auto;
}

.pict-status {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  font-size: 0.8rem;
}

.pict-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.pict-links a {
  border: 1px solid;
  padding: 0.5rem 1rem;
}

.status-online,
.status-active {
  color: #3cff72;
  text-shadow: 0 0 8px rgba(60, 255, 114, 0.6);
}

.status-danger {
  color: #ff3c3c;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
}

/*# sourceMappingURL=main.css.map */