/* =============================================================
   SLIDER SYSTEM — The Gallery of Things
   Slider 2: Exhibitions | Slider 3: Events
   Slider 4: Daueraustellungen | Slider 5: Blog
   ============================================================= */

/* ─── Section header ────────────────────────────────────────── */
.section-header-wrap {
  display: flex;
  align-items: flex-start;
  margin-bottom: 80px;
}
.exhibition-filter {
  display: flex;
  flex-direction: column;
  margin-left: 80px;
  margin-top: 20px;
}
.exhibition-filter button {
  all: unset;
  text-align: left;
  color: #000000;
  font-family: var(--fontFamilyPrimary);
  cursor: pointer;
}
.exhibition-filter button:hover  { font-weight: 800; }
.exhibition-filter button.active { font-weight: 800; }

/* ─── Slider items ──────────────────────────────────────────── */
.slider-item           { display: none; }
.slider-item.is-active { display: block; animation: sliderFadeIn 0.45s ease; }

@keyframes sliderFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Shared two-column layout ─────────────────────────────── */
.exhibition-content,
.event-content {
  width: 100%;
  display: flex;
  color: #000000;
}
.exhibition-left-content  { width: 45%; }
.exhibition-right-content {
  display: flex;
  flex-direction: column;
  width: 55%;
  padding-left: 60px;
}
.event-text { padding-right: 60px; }

/* ─── Info blocks ───────────────────────────────────────────── */
.info-heading {
  min-width: 140px;
  font-family: var(--fontFamilyPrimary);
  font-size: 14px;
  white-space: nowrap;
}
.info-wrap {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 40px;
}
.info-wrap p {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.date      { font-weight: 700; }
.startDate { margin-right: 5px; }
.endDate   { margin-left: 5px; }

/* ─── Exhibition / Event heading ────────────────────────────── */
.event-heading-wrap {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 30px;
}
.event-heading {
  font-weight: 700;
  font-size: 16px;
}
.event-desc {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.event-info-wrap {
  display: flex;
  margin-top: 20px;
}
.event-heading-small {
  min-width: 100px;
  font-family: var(--fontFamilyPrimary);
  font-size: 14px;
}
.event-info p {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* ─── Exhibition / Event image ──────────────────────────────── */
.exhibition-left-content img,
.event-content .exhibition-left-content img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* ─── Global floating slider nav ────────────────────────────── */
.global-slider-nav {
  position: fixed;
  bottom: 40px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 10px 16px;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.global-slider-nav.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.global-slider-nav button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 0;
}
.global-slider-nav button:disabled {
  opacity: 0.2;
  cursor: default;
}
.global-slider-nav img {
  width: 28px;
  height: 28px;
  display: block;
}
.global-slider-counter {
  font-family: var(--fontFamilyPrimary);
  font-size: 13px;
  min-width: 32px;
  text-align: center;
}

/* ─── Galerie Swiper (inner) ─────────────────────────────────── */
.galerie-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.galerie-slider .swiper-wrapper { padding-bottom: 80px; }
.galerie-slider img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}
.swiper-arrow-wrap {
  display: flex;
  flex-direction: row-reverse;
  position: absolute;
  bottom: 0;
  right: 0;
}
.galerie-slider .swiper-button-next,
.galerie-slider .swiper-button-prev {
  position: relative;
  width: auto;
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: "";
  background-image: url(/app/uploads/2024/11/slider-arrow-right.png);
  background-size: 40px 40px;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: "";
  background-image: url(/app/uploads/2024/11/slider-arrow-left.png);
  background-size: 40px 40px;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  transform: translateX(-15px);
}

/* ─── Blog 2-column grid per slide ──────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ─── Blog post card ─────────────────────────────────────────── */
.oxy-post {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.oxy-post-image {
  display: block;
  position: relative;
  overflow: hidden;
}
.oxy-post-image-fixed-ratio {
  width: 100%;
  padding-top: 66.66%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}
.oxy-post:hover .oxy-post-image-fixed-ratio { transform: scale(1.05); }
.oxy-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #555;
  border-bottom: 1px solid #eee;
}
.oxy-read-more {
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  font-family: var(--fontFamilyPrimary);
}
.oxy-post-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.oxy-post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}
.oxy-post-title:hover { color: #0073e6; }
.oxy-post-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .exhibition-content,
  .event-content         { flex-direction: column; }
  .exhibition-left-content   { width: 100%; }
  .exhibition-right-content  { width: 100%; padding-left: 0; }
  .event-text            { padding-right: 0; }
  .blog-grid             { gap: 24px; }
}
@media (max-width: 768px) {
  .blog-grid             { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section-header-wrap   { flex-direction: column; align-items: flex-start; }
  .exhibition-filter     { margin-left: 0; }
  .info-wrap             { flex-direction: column; align-items: flex-start; }
  .info-heading          { margin-bottom: 20px; min-width: auto; }
  .event-info-wrap       { flex-direction: column; align-items: flex-start; }
  .event-heading-small   { min-width: auto; margin-bottom: 15px; }
  .global-slider-nav     { bottom: 20px; padding: 8px 12px; }
}
