body.gallery-page {
  background: var(--clinic-ivory);
}

.gallery-main {
  padding-bottom: 60px;
}

.gallery-hero {
  text-align: center;
  padding: 70px 0 30px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.gallery-tab {
  border: 1px solid rgba(185, 146, 84, 0.4);
  border-radius: 999px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #fffaf3, #fff);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: #2a2420;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-tab.active,
.gallery-tab:hover {
  background: linear-gradient(120deg, #b99254, #a17c42);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(31, 26, 23, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 18px;
  min-height: 440px;
}

.gallery-card__media {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #f6eee8;
}

.gallery-card__media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.gallery-card__badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a6b5c;
}

.gallery-card__title {
  padding: 14px 18px 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #3d322a;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(31, 26, 23, 0.25);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

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

.gallery-modal__content {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 760px;
  width: min(95vw, 760px);
  position: relative;
  text-align: center;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
}

.gallery-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-pair,
.modal-single {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.modal-pair img,
.modal-single img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.15);
  max-height: 55vh;
}

@media (max-width: 768px) {
  .gallery-card__media img {
    height: 260px;
  }
}
