/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 70px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  opacity: 0;
  transition: 0.3s;
  font-size: 12px;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* =================================
         PAGE HERO
      ================================= */

.page-hero {
  min-height: 430px;

  display: flex;
  align-items: center;

  position: relative;

  background:
    linear-gradient(135deg, rgba(40, 93, 39, 0.92), rgba(63, 125, 50, 0.78)),
    url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1600&q=85");

  background-size: cover;
  background-position: center;

  color: white;

  margin-bottom: 70px;
}

.page-hero-content {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;

  padding-top: 70px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(5px);

  padding: 7px 15px;

  border-radius: 20px;

  font-size: 12px;
  font-weight: 600;

  margin-bottom: 15px;
}

.page-hero h1 {
  font-size: 48px;
  line-height: 1.1;

  max-width: 700px;

  margin-bottom: 15px;
}

.page-hero p {
  max-width: 650px;

  font-size: 15px;

  opacity: 0.92;
}

/* =================================
         YEAR SECTION
      ================================= */

.year-section {
  margin-bottom: 80px;
}

.year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 25px;
}

.year-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.year-title h2 {
  font-size: 32px;
  line-height: 1;
}

.year-line {
  height: 1px;
  flex: 1;

  margin-left: 20px;

  background: var(--border-color);
}

.year-count {
  background: var(--light-green);
  color: var(--dark-green);

  padding: 6px 12px;

  border-radius: 20px;

  font-size: 12px;
  font-weight: 700;
}

/* =================================
         GALLERY GRID
      ================================= */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

.gallery-card {
  position: relative;

  height: 310px;

  border-radius: var(--radius-lg);

  overflow: hidden;

  cursor: pointer;

  background: #ddd;

  box-shadow: var(--shadow);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

/* =================================
         IMAGE OVERLAY
      ================================= */

.gallery-overlay {
  position: absolute;

  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 24px;

  color: white;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.52) 45%,
    rgba(0, 0, 0, 0.04) 100%
  );

  transition: background 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.62) 55%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.gallery-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  font-size: 11px;
  font-weight: 700;

  color: #dfeecb;

  margin-bottom: 7px;
}

.gallery-title {
  font-size: 21px;
  line-height: 1.2;

  margin-bottom: 7px;
}

.gallery-description {
  font-size: 12px;
  line-height: 1.6;

  color: rgba(255, 255, 255, 0.86);

  max-width: 95%;
}

.click-hint {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 36px;
  height: 36px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);

  color: white;

  opacity: 0;

  transform: translateY(-5px);

  transition: 0.3s;
}

.gallery-card:hover .click-hint {
  opacity: 1;
  transform: translateY(0);
}

/* =================================
         EMPTY YEAR
      ================================= */

.empty-message {
  padding: 40px;

  background: white;

  border-radius: var(--radius-lg);

  text-align: center;

  color: var(--text-muted);
}

/* =================================
         IMAGE MODAL
      ================================= */

.image-modal {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.88);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 3000;

  padding: 25px;
}

.image-modal.show {
  display: flex;
}

.modal-content {
  width: min(1000px, 100%);

  max-height: 95vh;

  position: relative;

  display: flex;
  flex-direction: column;

  align-items: center;
}

.close-modal {
  position: fixed;

  top: 22px;
  right: 25px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  border: none;

  background: rgba(255, 255, 255, 0.15);

  color: white;

  font-size: 22px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.3s;

  z-index: 3100;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);

  transform: rotate(90deg);
}

.modal-image {
  max-width: 100%;
  max-height: 70vh;

  object-fit: contain;

  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-info {
  width: min(800px, 100%);

  text-align: center;

  color: white;

  margin-top: 20px;

  padding: 0 15px;
}

.modal-date {
  color: #b9dba8;

  font-size: 12px;
  font-weight: 700;

  margin-bottom: 7px;
}

.modal-title {
  font-size: 26px;

  margin-bottom: 8px;
}

.modal-message {
  color: rgba(255, 255, 255, 0.82);

  font-size: 14px;

  line-height: 1.7;
}
