
.gatscherhof-gallery-title-banner {
  margin-top: 18px;
  margin-bottom: 20px;
}
.gatscherhof-gallery-title-banner .content {
  min-height: clamp(250px, 32vw, 400px);
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(18px, 3vw, 34px);
  border-radius: clamp(24px, 3vw, 38px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(16, 16, 18, 0.68) 0%, rgba(16, 16, 18, 0.42) 34%, rgba(16, 16, 18, 0.14) 68%, rgba(16, 16, 18, 0.08) 100%),
    url("../media/gallery/sonstiges/1.avif") center/cover no-repeat;
  box-shadow: 0 26px 70px rgba(25, 23, 23, 0.14);
}
.gatscherhof-gallery-title-banner .content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  pointer-events: none;
}
.gatscherhof-gallery-title-banner .gatscherhof-gallery-hero {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(22px, 3vw, 34px);
  border-radius: clamp(22px, 2.6vw, 32px);
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(251,251,251,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: 0 22px 55px rgba(18, 18, 20, 0.12);
  backdrop-filter: blur(10px);
}
.gatscherhof-gallery-title-banner .gatscherhof-gallery-hero::after {
  display: none;
}

.gatscherhof-gallery-page {
  padding: clamp(28px, 4vw, 56px) 0 clamp(128px, 12vw, 190px);
}
.gatscherhof-gallery-page .container-fluid {
  width: min(100%, 1440px);
}
.gatscherhof-gallery-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
  border-radius: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at top right, rgba(151, 134, 103, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(248, 249, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(244, 247, 250, 0.96) 100%);
  border: 1px solid rgba(151, 134, 103, 0.14);
  box-shadow: 0 28px 70px rgba(40, 37, 37, 0.08);
}
.gatscherhof-gallery-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 134, 103, 0.12) 0%, rgba(151, 134, 103, 0) 70%);
  pointer-events: none;
}
.gatscherhof-gallery-hero .gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(151, 134, 103, 0.11);
  color: #6e5f49;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.gatscherhof-gallery-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.gatscherhof-gallery-hero p {
  max-width: 760px;
  margin: 0;
  color: #5f6168;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.75;
}
.gatscherhof-gallery-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.gatscherhof-gallery-stats .stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(151, 134, 103, 0.12);
  color: #282525;
  box-shadow: 0 8px 18px rgba(40, 37, 37, 0.05);
}
.gatscherhof-gallery-toolbar {
  display: grid;
  gap: 22px;
  margin-bottom: 34px;
}
.gatscherhof-gallery-folders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gatscherhof-folder-card {
  position: relative;
  display: flex;
  min-height: 240px;
  overflow: hidden;
  border-radius: 28px;
  text-decoration: none;
  background: #d8dde3;
  box-shadow: 0 20px 48px rgba(40, 37, 37, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.gatscherhof-folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(40, 37, 37, 0.14);
}
.gatscherhof-folder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--folder-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.gatscherhof-folder-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.08) 0%, rgba(20, 20, 22, 0.34) 42%, rgba(20, 20, 22, 0.78) 100%);
}
.gatscherhof-folder-card .folder-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: 24px;
  color: #ffffff;
}
.gatscherhof-folder-card .folder-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gatscherhof-folder-card h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}
.gatscherhof-folder-card p {
  max-width: 32ch;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
}
.gatscherhof-folder-card .folder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}
.gatscherhof-folder-card .folder-meta span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gatscherhof-folder-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(40, 37, 37, 0.16);
}
.gatscherhof-folder-card.is-active::after {
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.05) 0%, rgba(20, 20, 22, 0.28) 40%, rgba(20, 20, 22, 0.72) 100%);
}
.gatscherhof-folder-card.is-active .folder-label {
  background: rgba(255,255,255,0.22);
}
.gatscherhof-gallery-filters-wrap {
  position: sticky;
  top: 88px;
  z-index: 20;
}
.gatscherhof-gallery-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(151, 134, 103, 0.11);
  box-shadow: 0 16px 34px rgba(40, 37, 37, 0.06);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gatscherhof-gallery-filters::-webkit-scrollbar {
  display: none;
}
.gatscherhof-gallery-filters .filter-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: transparent;
  color: #53555b;
  transition: all 0.22s ease;
  font-size: 0.96rem;
  font-weight: 700;
}
.gatscherhof-gallery-filters .filter-btn:hover,
.gatscherhof-gallery-filters .filter-btn.is-active {
  background: #978667;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(151, 134, 103, 0.24);
}
.gatscherhof-gallery-section {
  margin-bottom: 48px;
  scroll-margin-top: 150px;
}
.gatscherhof-gallery-section:last-child {
  margin-bottom: 0;
}
.gatscherhof-gallery-section.is-hidden {
  display: none;
}
.gatscherhof-gallery-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.95) 0%, rgba(255,255,255,0.98) 100%);
  border-radius: 26px;
  border: 1px solid rgba(151, 134, 103, 0.11);
  box-shadow: 0 18px 42px rgba(40, 37, 37, 0.05);
}
.gatscherhof-gallery-section-header .section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a7b63;
}
.gatscherhof-gallery-section-header h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.12;
}
.gatscherhof-gallery-section-header p {
  max-width: 700px;
  margin: 0;
  color: #60646b;
  line-height: 1.72;
}
.gatscherhof-gallery-section-header .section-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(151, 134, 103, 0.1);
  color: #6e5f49;
  font-weight: 700;
}
.gatscherhof-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.gatscherhof-gallery-item {
  min-width: 0;
}
.gatscherhof-gallery-item.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.gatscherhof-gallery-item.is-wide {
  grid-column: span 2;
}
.gatscherhof-gallery-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(151, 134, 103, 0.10);
  box-shadow: 0 18px 38px rgba(40, 37, 37, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.gatscherhof-gallery-link:hover,
.gatscherhof-gallery-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(40, 37, 37, 0.11);
  border-color: rgba(151, 134, 103, 0.22);
}
.gatscherhof-gallery-link .gallery-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2f5;
}
.gatscherhof-gallery-item.is-featured .gallery-media {
  aspect-ratio: 16 / 11;
  height: 100%;
}
.gatscherhof-gallery-item.is-wide .gallery-media {
  aspect-ratio: 16 / 10;
}
.gatscherhof-gallery-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.gatscherhof-gallery-link:hover img,
.gatscherhof-gallery-link:focus-visible img {
  transform: scale(1.035);
}
.gatscherhof-gallery-link .gallery-zoom-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 18, 20, 0.42);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.gatscherhof-gallery-link .gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}
.gatscherhof-gallery-link .gallery-card-meta .text-group {
  min-width: 0;
}
.gatscherhof-gallery-link .caption {
  display: block;
  margin-bottom: 2px;
  color: #282525;
  font-size: 0.98rem;
  font-weight: 700;
}
.gatscherhof-gallery-link .category {
  display: block;
  color: #74777d;
  font-size: 0.85rem;
  line-height: 1.45;
}
.gatscherhof-gallery-link .meta-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(151, 134, 103, 0.1);
  color: #6e5f49;
}
.gatscherhof-gallery-modal .modal-content {
  background: rgba(19, 19, 21, 0.93);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
}
.gatscherhof-gallery-modal .modal-body {
  padding: 24px;
}
.gatscherhof-gallery-modal .lightbox-stage {
  position: relative;
  overflow: hidden;
}
.gatscherhof-gallery-modal img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.gatscherhof-gallery-modal .lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #ffffff;
}
.gatscherhof-gallery-modal .lightbox-caption .meta {
  color: rgba(255,255,255,0.72);
}
.gatscherhof-gallery-modal .lightbox-nav,
.gatscherhof-gallery-modal .btn-close-custom {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}
.gatscherhof-gallery-modal .lightbox-nav:hover,
.gatscherhof-gallery-modal .btn-close-custom:hover {
  background: rgba(255,255,255,0.2);
}
.gatscherhof-gallery-modal .lightbox-nav.prev { left: 18px; }
.gatscherhof-gallery-modal .lightbox-nav.next { right: 18px; }
.gatscherhof-gallery-modal .btn-close-custom {
  top: 22px;
  right: 22px;
  transform: none;
}
@media (max-width: 1199px) {
  .gatscherhof-gallery-folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gatscherhof-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .gatscherhof-gallery-folders {
    grid-template-columns: 1fr;
  }
  .gatscherhof-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gatscherhof-gallery-item.is-featured,
  .gatscherhof-gallery-item.is-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gatscherhof-gallery-filters-wrap {
    top: 72px;
  }
}
@media (max-width: 767px) {
  .gatscherhof-gallery-page {
    padding-top: 24px;
  }
  .gatscherhof-gallery-hero {
    padding: 22px;
    border-radius: 24px;
  }
  .gatscherhof-gallery-stats {
    gap: 10px;
  }
  .gatscherhof-gallery-stats .stat-pill {
    width: 100%;
    justify-content: center;
  }
  .gatscherhof-folder-card {
    min-height: 220px;
    border-radius: 22px;
  }
  .gatscherhof-folder-card .folder-card-content {
    padding: 20px;
  }
  .gatscherhof-gallery-filters {
    border-radius: 18px;
    padding: 8px;
  }
  .gatscherhof-gallery-filters .filter-btn {
    padding: 11px 16px;
    font-size: 0.92rem;
  }
  .gatscherhof-gallery-section {
    margin-bottom: 32px;
  }
  .gatscherhof-gallery-section-header {
    padding: 18px;
    border-radius: 20px;
  }
  .gatscherhof-gallery-grid {
    gap: 14px;
  }
  .gatscherhof-gallery-link {
    border-radius: 18px;
  }
  .gatscherhof-gallery-link .gallery-zoom-badge {
    width: 36px;
    height: 36px;
    right: 10px;
    top: 10px;
  }
  .gatscherhof-gallery-link .gallery-card-meta {
    padding: 13px 14px 14px;
  }
  .gatscherhof-gallery-link .caption {
    font-size: 0.92rem;
  }
  .gatscherhof-gallery-modal .modal-body {
    padding: 18px 12px 14px;
  }
  .gatscherhof-gallery-modal .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .gatscherhof-gallery-modal .lightbox-nav.prev { left: 10px; }
  .gatscherhof-gallery-modal .lightbox-nav.next { right: 10px; }
}
@media (max-width: 575px) {
  .gatscherhof-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gatscherhof-gallery-modal .lightbox-stage::before,
.gatscherhof-gallery-modal .lightbox-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.gatscherhof-gallery-modal .lightbox-stage::before {
  left: 0;
  background: linear-gradient(90deg, rgba(18,18,20,0.24), rgba(18,18,20,0));
}
.gatscherhof-gallery-modal .lightbox-stage::after {
  right: 0;
  background: linear-gradient(270deg, rgba(18,18,20,0.24), rgba(18,18,20,0));
}
.gatscherhof-gallery-modal .lightbox-nav:focus-visible,
.gatscherhof-gallery-modal .btn-close-custom:focus-visible {
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 3px;
}
@media (max-width: 991px) {
  .gatscherhof-gallery-title-banner {
    margin-top: 8px;
  }
  .gatscherhof-gallery-title-banner .content {
    min-height: 220px;
    padding: 16px;
  }
}
@media (max-width: 767px) {
  .gatscherhof-gallery-title-banner .content {
    min-height: 200px;
    align-items: flex-end;
  }
  .gatscherhof-gallery-title-banner .gatscherhof-gallery-hero {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
  }
  .gatscherhof-gallery-title-banner .gatscherhof-gallery-hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }
}

/* === Gallery refinements: robust filters + dependable lightbox === */
.gatscherhof-folder-card {
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.gatscherhof-folder-card:focus-visible,
.gatscherhof-gallery-link:focus-visible {
  outline: 2px solid rgba(151, 134, 103, 0.55);
  outline-offset: 4px;
}
.gatscherhof-gallery-sections {
  display: grid;
  gap: 36px;
}
.gatscherhof-gallery-section {
  animation: galleryFadeIn 0.28s ease;
}
@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.gatscherhof-gallery-link {
  cursor: zoom-in;
}
.gatscherhof-gallery-modal .modal-dialog {
  max-width: min(1180px, calc(100vw - 28px));
}
.gatscherhof-gallery-modal .modal-content {
  overflow: hidden;
}
.gatscherhof-gallery-modal .lightbox-stage {
  min-height: min(72vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.gatscherhof-gallery-modal .lightbox-stage.is-loading,
.gatscherhof-gallery-modal.is-loading .lightbox-stage {
  cursor: progress;
}
.gatscherhof-gallery-modal img {
  width: auto;
  max-width: 100%;
}
.gatscherhof-gallery-modal .lightbox-hit-area {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  min-width: 72px;
  border: 0;
  padding: 0;
  background: transparent;
  z-index: 4;
  cursor: pointer;
}
.gatscherhof-gallery-modal .lightbox-hit-area.prev {
  left: 0;
}
.gatscherhof-gallery-modal .lightbox-hit-area.next {
  right: 0;
}
.gatscherhof-gallery-modal .lightbox-hit-area:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: -8px;
}
.gatscherhof-gallery-modal .lightbox-nav,
.gatscherhof-gallery-modal .btn-close-custom {
  z-index: 7;
}
@media (max-width: 767px) {
  .gatscherhof-gallery-sections {
    gap: 26px;
  }
  .gatscherhof-gallery-modal .modal-dialog {
    max-width: calc(100vw - 10px);
    margin: 12px auto;
  }
  .gatscherhof-gallery-modal .lightbox-stage {
    min-height: 54vh;
    border-radius: 18px;
  }
  .gatscherhof-gallery-modal .lightbox-hit-area {
    width: 24%;
    min-width: 56px;
  }
}


/* === Critical lightbox fix: keep overlay above smooth-scroll wrappers === */
body.gallery-lightbox-open {
  overflow: hidden;
}
.gatscherhof-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.22s ease;
  padding: 18px;
}
.gatscherhof-gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.gatscherhof-gallery-modal .modal-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 28px));
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
}
.gatscherhof-gallery-modal .modal-content {
  width: 100%;
  margin: 0;
}
.gatscherhof-gallery-modal .modal-body {
  position: relative;
}
@media (max-width: 767px) {
  .gatscherhof-gallery-modal {
    padding: 8px;
  }
  .gatscherhof-gallery-modal .modal-dialog {
    width: calc(100vw - 16px);
    min-height: calc(100vh - 16px);
  }
}


/* === Final tab stability + mobile polish === */
.gatscherhof-gallery-filters-wrap {
  pointer-events: auto;
}
.gatscherhof-gallery-filters {
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
.gatscherhof-gallery-filters .filter-btn {
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  scroll-snap-align: start;
  white-space: nowrap;
}
.gatscherhof-gallery-filters .filter-btn:focus-visible,
.gatscherhof-gallery-filters .filter-btn.is-active:focus-visible {
  outline: 2px solid rgba(151, 134, 103, 0.45);
  outline-offset: 2px;
}
.gatscherhof-folder-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gatscherhof-gallery-sections {
  min-height: 280px;
}


.gatscherhof-contact-intro{max-width:560px;line-height:1.75;}


/* === 2026 polish: größere, schönere Galerie-Buttons === */
.gatscherhof-gallery-toolbar {
  gap: 26px;
  margin-bottom: 40px;
}
.gatscherhof-gallery-folders {
  gap: 22px;
}
.gatscherhof-gallery-title-banner .gatscherhof-gallery-hero {
  box-shadow: 0 28px 68px rgba(18, 18, 20, 0.16);
}
.gatscherhof-gallery-hero .gallery-eyebrow {
  padding: 11px 16px;
  font-size: 0.82rem;
}
.gatscherhof-gallery-stats {
  gap: 14px;
  margin-top: 28px;
}
.gatscherhof-gallery-stats .stat-pill {
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 700;
}

.gatscherhof-folder-card {
  min-height: 300px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 32px;
  box-shadow: 0 22px 55px rgba(23, 22, 20, 0.12);
  transform: translateZ(0);
  isolation: isolate;
}
.gatscherhof-folder-card::before {
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.02) brightness(0.92);
  transition: transform 0.38s ease, filter 0.38s ease;
}
.gatscherhof-folder-card::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 20%),
    linear-gradient(180deg, rgba(14, 14, 16, 0.06) 0%, rgba(14, 14, 16, 0.28) 34%, rgba(14, 14, 16, 0.80) 100%);
}
.gatscherhof-folder-card:hover,
.gatscherhof-folder-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 34px 80px rgba(23, 22, 20, 0.18);
}
.gatscherhof-folder-card:hover::before,
.gatscherhof-folder-card:focus-visible::before,
.gatscherhof-folder-card.is-active::before {
  transform: scale(1.08);
  filter: saturate(1.04) contrast(1.03) brightness(0.9);
}
.gatscherhof-folder-card .folder-card-content {
  padding: 30px;
}
.gatscherhof-folder-card .folder-label {
  margin-bottom: 14px;
  padding: 11px 17px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  font-size: 0.83rem;
  letter-spacing: 0.07em;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.gatscherhof-folder-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  line-height: 1.08;
  text-wrap: balance;
}
.gatscherhof-folder-card p {
  max-width: 38ch;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.96);
  font-size: 1.04rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.gatscherhof-folder-card .folder-meta {
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1.02rem;
}
.gatscherhof-folder-card .folder-count,
.gatscherhof-folder-card .folder-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
}
.gatscherhof-folder-card .folder-count {
  padding: 0 18px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.gatscherhof-folder-card .folder-action {
  margin-left: auto;
  padding: 0 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.12) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}
.gatscherhof-folder-card .folder-action i {
  transition: transform 0.22s ease;
}
.gatscherhof-folder-card:hover .folder-action i,
.gatscherhof-folder-card:focus-visible .folder-action i,
.gatscherhof-folder-card.is-active .folder-action i {
  transform: translateX(3px);
}
.gatscherhof-folder-card.is-active {
  transform: translateY(-8px);
  box-shadow: 0 38px 85px rgba(23, 22, 20, 0.22);
}
.gatscherhof-folder-card.is-active::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 22%),
    linear-gradient(180deg, rgba(14, 14, 16, 0.04) 0%, rgba(14, 14, 16, 0.23) 36%, rgba(14, 14, 16, 0.76) 100%);
}
.gatscherhof-folder-card.is-active .folder-label {
  background: rgba(255,255,255,0.25);
}

.gatscherhof-gallery-filters-wrap {
  top: 94px;
}
.gatscherhof-gallery-filters {
  gap: 14px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(250,250,250,0.96) 100%);
  border: 1px solid rgba(151, 134, 103, 0.14);
  box-shadow: 0 18px 44px rgba(40, 37, 37, 0.08);
}
.gatscherhof-gallery-filters .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 22px;
  border: 1px solid rgba(151, 134, 103, 0.14);
  background: linear-gradient(180deg, rgba(250,249,247,0.95) 0%, rgba(255,255,255,0.96) 100%);
  color: #4a4741;
  box-shadow: 0 12px 28px rgba(40, 37, 37, 0.05);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.gatscherhof-gallery-filters .filter-btn .filter-text {
  line-height: 1.2;
}
.gatscherhof-gallery-filters .filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(151, 134, 103, 0.10);
  color: #6e5f49;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(151, 134, 103, 0.12);
}
.gatscherhof-gallery-filters .filter-btn:hover,
.gatscherhof-gallery-filters .filter-btn:focus-visible,
.gatscherhof-gallery-filters .filter-btn.is-active {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #a3906b 0%, #8b7857 100%);
  color: #ffffff;
  border-color: rgba(151, 134, 103, 0.2);
  box-shadow: 0 18px 34px rgba(151, 134, 103, 0.26);
}
.gatscherhof-gallery-filters .filter-btn:hover .filter-count,
.gatscherhof-gallery-filters .filter-btn:focus-visible .filter-count,
.gatscherhof-gallery-filters .filter-btn.is-active .filter-count {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.gatscherhof-gallery-section-header {
  padding: 26px 28px;
  border-radius: 30px;
}
.gatscherhof-gallery-section-header .section-kicker {
  margin-bottom: 10px;
  font-size: 0.82rem;
}
.gatscherhof-gallery-section-header h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}
.gatscherhof-gallery-section-header p {
  font-size: 1rem;
}
.gatscherhof-gallery-section-header .section-count {
  min-height: 54px;
  padding: 0 20px;
  font-size: 0.98rem;
}

@media (max-width: 1199px) {
  .gatscherhof-folder-card {
    min-height: 280px;
  }
}

@media (max-width: 991px) {
  .gatscherhof-gallery-toolbar {
    gap: 22px;
  }
  .gatscherhof-gallery-filters-wrap {
    top: 74px;
  }
  .gatscherhof-gallery-filters {
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }
  .gatscherhof-gallery-filters .filter-btn {
    min-height: 58px;
    padding: 13px 18px;
  }
  .gatscherhof-folder-card {
    min-height: 260px;
    border-radius: 28px;
  }
  .gatscherhof-folder-card .folder-card-content {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .gatscherhof-gallery-title-banner .gatscherhof-gallery-hero {
    padding: 22px;
  }
  .gatscherhof-gallery-stats .stat-pill {
    justify-content: flex-start;
    padding: 13px 16px;
    font-size: 0.94rem;
  }
  .gatscherhof-folder-card {
    min-height: 250px;
    border-radius: 24px;
  }
  .gatscherhof-folder-card .folder-card-content {
    padding: 22px;
  }
  .gatscherhof-folder-card .folder-label {
    padding: 10px 14px;
    font-size: 0.76rem;
  }
  .gatscherhof-folder-card h3 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .gatscherhof-folder-card p {
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.68;
  }
  .gatscherhof-folder-card .folder-meta {
    font-size: 0.95rem;
  }
  .gatscherhof-folder-card .folder-count,
  .gatscherhof-folder-card .folder-action {
    min-height: 48px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .gatscherhof-gallery-filters-wrap {
    top: 68px;
  }
  .gatscherhof-gallery-filters {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 10px;
    border-radius: 20px;
  }
  .gatscherhof-gallery-filters .filter-btn {
    min-height: 56px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .gatscherhof-gallery-filters .filter-btn .filter-count {
    min-width: 32px;
    height: 32px;
    font-size: 0.84rem;
  }
  .gatscherhof-gallery-section-header {
    padding: 20px;
    border-radius: 24px;
  }
}

@media (max-width: 575px) {
  .gatscherhof-gallery-title-banner .content {
    padding: 14px;
  }
  .gatscherhof-gallery-title-banner .gatscherhof-gallery-hero {
    padding: 20px 18px;
  }
  .gatscherhof-gallery-stats {
    gap: 10px;
  }
  .gatscherhof-gallery-stats .stat-pill {
    width: 100%;
  }
  .gatscherhof-gallery-folders {
    gap: 18px;
  }
  .gatscherhof-folder-card {
    min-height: 236px;
  }
  .gatscherhof-folder-card .folder-card-content {
    padding: 18px;
  }
  .gatscherhof-folder-card .folder-meta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .gatscherhof-folder-card .folder-action {
    margin-left: 0;
    justify-content: center;
  }
  .gatscherhof-gallery-filters {
    padding: 8px;
  }
  .gatscherhof-gallery-filters .filter-btn {
    min-height: 54px;
    padding: 12px 14px;
  }
  .gatscherhof-gallery-filters .filter-btn .filter-text {
    font-size: 0.92rem;
  }
}

/* === Responsive hotfix: mobile cards and filters never cut off === */
.gatscherhof-gallery-page .container-fluid,
.gatscherhof-gallery-toolbar,
.gatscherhof-gallery-folders,
.gatscherhof-gallery-filters,
.gatscherhof-gallery-sections,
.gatscherhof-folder-card,
.gatscherhof-folder-card .folder-card-content,
.gatscherhof-folder-card .folder-meta,
.gatscherhof-gallery-filters .filter-btn {
  min-width: 0;
}

@media (max-width: 767px) {
  .gatscherhof-gallery-page .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gatscherhof-gallery-folders {
    gap: 16px;
  }

  .gatscherhof-folder-card {
    min-height: 0;
  }

  .gatscherhof-folder-card .folder-card-content {
    padding: 20px 16px 16px;
  }

  .gatscherhof-folder-card h3,
  .gatscherhof-folder-card p,
  .gatscherhof-gallery-section-header h2,
  .gatscherhof-gallery-section-header p,
  .gatscherhof-gallery-filters .filter-btn .filter-text {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .gatscherhof-folder-card p {
    max-width: none;
    margin-bottom: 14px;
  }

  .gatscherhof-folder-card .folder-meta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .gatscherhof-folder-card .folder-count,
  .gatscherhof-folder-card .folder-action {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .gatscherhof-folder-card .folder-action {
    margin-left: 0;
  }

  .gatscherhof-gallery-filters-wrap {
    top: 68px;
  }

  .gatscherhof-gallery-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    gap: 10px;
    padding: 10px;
  }

  .gatscherhof-gallery-filters .filter-btn {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    text-align: left;
    padding: 12px 14px;
    gap: 10px;
  }

  .gatscherhof-gallery-filters .filter-btn .filter-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
  }

  .gatscherhof-gallery-filters .filter-btn .filter-count {
    flex: 0 0 auto;
  }
}

@media (max-width: 575px) {
  .gatscherhof-gallery-page .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .gatscherhof-gallery-folders {
    gap: 14px;
  }

  .gatscherhof-folder-card {
    border-radius: 22px;
  }

  .gatscherhof-folder-card .folder-card-content {
    padding: 18px 14px 14px;
  }

  .gatscherhof-folder-card .folder-count,
  .gatscherhof-folder-card .folder-action {
    min-height: 46px;
    font-size: 0.93rem;
  }

  .gatscherhof-gallery-filters {
    grid-template-columns: 1fr;
  }

  .gatscherhof-gallery-filters .filter-btn {
    min-height: 54px;
  }
}
