.hero {
  position: relative;
  min-height: calc(var(--hero-height, 100vh) - var(--header-height, 0px));
  overflow: hidden;
  display: flex;
  align-items: end;
}

/* MEDIA LAYER */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media figure,
.hero__media picture,
.hero__media video,
.hero__media img,
.hero__media a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* override renderer aspect-ratio */
.hero__media figure {
  aspect-ratio: auto !important;
}

/* cover behaviour */

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 35%,
    rgba(0, 0, 0, 0.0) 70%
  );
}

/* CONTENT */

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}




.list-block { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }

/* li a{
    color: inherit;
} */

.organizer{
    display: grid;
}

@media screen and (min-width: 992px) {
    .organizer{
        grid-template-columns: repeat(12, 1fr);
    }
}

.organizer .organizer-item, .swiper-container{
    display: grid;
    grid-template-columns: 1fr;
}

figcaption{
    color: var(--color-fourth);
}


.text-block{
    display: grid;
}

/* General container for images */
figure.image, figure.video {
    position: relative;
    align-self: start;
    width: 100%;
    /* The aspect-ratio will be applied via inline style from PHP for raster images */
}

.image img, .video video{
    height: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-embed {
  border: 0;
  display: block;
}

/* Styling for raster images (WebP, JPEG, GIFs) - both placeholder AND final image */
/* These will fill the aspect-ratio constrained figure */
.image img.is-raster-image {
    display: block; /* Removes extra space below inline elements */
    width: 100%;    /* Image fills the width of its parent */
    height: 100%;   /* Image fills the height of its parent (constrained by aspect-ratio) */
    object-fit: cover; /* This is typically what you want for photos: fill the space, crop if necessary */
    object-position: center; /* Center the image within its box */
    }

/* Styling for SVGs (images WITHOUT the .is-raster-image class) */
/* These containers will NOT have the aspect-ratio styling from PHP */
.image img:not(.is-raster-image) {
    display: block;
    max-width: 100%; /* Prevents SVG from overflowing its container */
    height: auto;    /* Crucial for SVGs to maintain their own aspect ratio naturally */
    object-fit: contain; /* SVGs often look best when they fit entirely within their space */
    margin: 0 auto;  /* Centers smaller SVGs horizontally */
}



/* Parvus Lightbox */

.image-desktop, .image-mobile { width: 100%; }

/* Mobile < 992px */
@media (max-width: 991px) {
    .image-desktop { display: none; }
    .image-mobile { display: block; }
}

/* Desktop >= 992px */
@media (min-width: 992px) {
    .image-mobile { display: none; }
    .image-desktop { display: block; }
}

body .parvus__slide {
  /* padding: 3.75rem 1rem !important; */
  padding: var(--size-m)!important;
}

.parvus__counter{
    display: none!important;
}

/* Remove all focus styles from Parvus buttons */
.parvus__btn:focus,
.parvus__btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important; /* iOS/Safari highlight */
}

/* Firefox inner button focus fix */
.parvus__btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.parvus-zoom__indicator, .parvus__btn {
    border-radius: var(--btn-border-radius)!important;
}

a.lightbox{
  display: block;
}


/* Swiper */

.swiper{
    width: 100%;
    max-width: 100%; /* Important for flex/grid parents */
    min-height: 0; /* Prevents overflow issues in some flex/grid contexts */
    min-width: 0;  /* Prevents overflow issues in some flex/grid contexts */
}

/* .swiper, .swiper-pagination{
    --swiper-navigation-color: blue;
    --swiper-pagination-color: blue;
} */

.overflow-x-hidden {
    overflow-x: hidden;
}

.fill-window {
    width: 100vw;  /* 100% of the viewport width */
    height: 100svh; /* 100% of the viewport height */
    min-height: 0;  /* Prevent any minimum height constraints */
}

.swiper-pagination[class*="-outside"] { /* This targets any class containing '-outside' */
    /* Override Swiper's default absolute positioning and related properties */
    position: static !important; /* Forces it into normal document flow */
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important; /* Allow width to be determined by content/text-align */
    
    /* Basic styling for when it's outside */
    text-align: center; /* Center the pagination dots */
    /* Ensure default Swiper colors still apply or override as needed */
    /* color: var(--swiper-pagination-color); or set a specific color here */
}

/* SAFARI fix for video not rendering properly inside a swiper slide */
.swiper-slide video {
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* FIREFOX fix for video not draggable when inside a swiper slide */
.swiper-slide video {
    pointer-events: none;
}

.vita{
    display: flex;
    flex-direction: column;
}

.vita-row {
  display: flex;
}

.vita-year {
  min-width: 6rem;       /* minimum for short years */
}

.filter-buttons{
    display: flex;
    flex-wrap: wrap;
    gap: var(--size-xs);
    z-index: 3;
}

.button {
    all: unset;

    /* Use global button variables */
    color: var(--btn-color);
    background-color: var(--btn-background-color);
    border: 1px solid var(--btn-border-color);
    padding: var(--btn-padding);
    border-radius: var(--btn-border-radius);

    transition: 
        background-color 300ms ease,
        color 300ms ease,
        border-color 300ms ease;
}

button.button{
      cursor: pointer;
}

.button.mini-btn {
    padding: var(--size-xxs) var(--size-xs);
    font-size: var(--size-xs);
}

.button.active {
    background-color: var(--btn-hover-background-color);
    color: var(--btn-hover-color);
    border-color: var(--btn-hover-border-color);
}

@media screen and (min-width: 992px) {
    button.button:hover {
        background-color: var(--btn-hover-background-color);
        color: var(--btn-hover-color);
        border-color: var(--btn-hover-border-color);
    }
}

.btn--discrete{
    border: none!important;
    background-color: transparent!important;
}

.parent-page-link{
    width: max-content;
}

.pseudo-thumbhash{
    position: absolute; 
    top: 0; 
    left: 0; 
}

.quote-block { 
  display: flex; 
}


/* Reset list */
.gallery-grid__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--size-xs);
}

/* Gap utility already exists (gap-s, gap-m etc.) */
/* So no gap rule needed here */

/* Mobile columns */
.gallery-cols-mobile-1 .gallery-grid__items { grid-template-columns: repeat(1, 1fr); }
.gallery-cols-mobile-2 .gallery-grid__items { grid-template-columns: repeat(2, 1fr); }
.gallery-cols-mobile-3 .gallery-grid__items { grid-template-columns: repeat(3, 1fr); }
.gallery-cols-mobile-4 .gallery-grid__items { grid-template-columns: repeat(4, 1fr); }
.gallery-cols-mobile-6 .gallery-grid__items { grid-template-columns: repeat(6, 1fr); }

/* Tablet */
@media screen and (min-width: 600px) {
    .gallery-cols-tablet-2 .gallery-grid__items { grid-template-columns: repeat(2, 1fr); }
    .gallery-cols-tablet-3 .gallery-grid__items { grid-template-columns: repeat(3, 1fr); }
    .gallery-cols-tablet-4 .gallery-grid__items { grid-template-columns: repeat(4, 1fr); }
    .gallery-cols-tablet-6 .gallery-grid__items { grid-template-columns: repeat(6, 1fr); }
}

/* Desktop (matches your 992px breakpoint) */
@media screen and (min-width: 992px) {
    .gallery-cols-desktop-2 .gallery-grid__items { grid-template-columns: repeat(2, 1fr); }
    .gallery-cols-desktop-3 .gallery-grid__items { grid-template-columns: repeat(3, 1fr); }
    .gallery-cols-desktop-4 .gallery-grid__items { grid-template-columns: repeat(4, 1fr); }
    .gallery-cols-desktop-6 .gallery-grid__items { grid-template-columns: repeat(6, 1fr); }
}

/* .gallery-grid__item figure.image {
  margin: 0;
}

.gallery-grid__item figure.image.is-portrait {
    width: 66.66%;
    margin: auto;
} */



.organizer-item-list-item{
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--size-xs);
    align-items: center;
    padding-top: var(--size-xs);
    padding-bottom: var(--size-xs);
    border-bottom: 1px solid var(--color-primary);
}

.organizer-item-list-item.is-first-visible {
  border-top: 1px solid var(--color-primary);
}

.organizer-item-list-item-header{
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--size-xs);
    align-items: center;
}

.organizer-item-list-item.has-content .organizer-item-list-item-header{
    cursor: pointer;
}

.organizer-item-list-content{
    gap: var(--size-xs);
}

.organizer-item-list-item.has-content .organizer-item-list-content { 
    display: none; 
}

.organizer-item-list-item.has-content.is-open .organizer-item-list-content { 
    display: grid; 
}

.organizer-item-list-header-orientation{
    display: flex;
    flex-direction: row;
    gap: var(--size-xs);
}

.organizer-item-list-date, .organizer-item-list-tags{
    text-transform: uppercase;
    text-align: left;
    font-size: var(--size-xs);
}


.organizer-item-list-title{
    position: relative;
}

.organizer-item-list-item-arrow{
    position: absolute;
    right: 0;
}

.organizer-item-list-item-arrow svg{
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.organizer-item-list-item.has-content .organizer-item-list-item-header:hover .organizer-item-list-item-arrow svg{
    transform: rotate(90deg);
}

.organizer-item-list-item.has-content.is-open .organizer-item-list-item-arrow svg{
  transform: rotate(90deg);
}

.organizer-item-list-abstract{
    grid-column: 1 / -1;
    display: grid;
    gap: var(--size-xs);
}

.organizer.is-team-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 470px));
}

.member-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
}

.member-card .image {
    width: 140px;
}

.member-card__body{
    display: flex;
    flex-direction: column;
}

.member-card__body > :nth-child(2) {
  margin-top: var(--size-xs);
}

.member-card__body > :nth-child(3) {
  margin-top: 5px;
}

.member-card__attachments ul{
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--size-xxs);
}

.member-card__attachments ul li:not(:last-child)::after {
  content: ",";
}


.audio-block {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: start;
    padding: var(--size-s);
    background-color: var(--color-fourth);
    border-radius: var(--size-xs);
}

/* COVER */

.audio-block__album-art {
  grid-row: span 2;
}

.audio-block__album-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--size-xxs);
}

/* HEADER */

.audio-block__header h2 {
  margin: 0;
  font-size: var(--size-m);
  line-height: 1.2;
  color: var(--color-secondary);
}

.audio-block__header p {
  margin: 0.3rem 0;
  color: var(--color-secondary);
}

/* TRACKLIST */

.audio-block__tracklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: var(--size-m)
}

.audio-block__track h3 {
  margin: 0 0 0.35rem 0;
  color: var(--color-secondary);
}

.audio-block__caption{
    opacity: 0.5;
}

.audio-block__spotify-link::before {
  content: "▶";
  margin-right: 0.4rem;
  font-size: 0.8em;
}

.spotify-btn{
    background: transparent!important;
    border-color: #1DB954!important;
    color: #1DB954!important;
    text-decoration: none!important;
}

.spotify-btn:hover{
    background: #1DB954!important;
    color: var(--color-fourth)!important;
}
/* AUDIO PLAYER */

.audio-block audio {
  width: 100%;
  display: block;
}

/* MOBILE */

@media (max-width: 700px) {

  .audio-block {
    grid-template-columns: 1fr;
  }

  .audio-block__cover {
    grid-row: auto;
    max-width: 280px;
  }

}

hr {
  border: none;          /* remove default */
  border-top: 1px solid var(--color-primary);
}



/* Container to align Label + Icons + Slider */
.scale-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  padding-top: 1px;
  padding-bottom: 1px;
  border: 1px solid var(--btn-border-color);  

}

.filter-buttons .scale-controls {
  padding: var(--btn-padding);
  border-radius: var(--btn-border-radius);
  background-color: var(--btn-background-color);
}

/* The "Scale:" text style */
.scale-label {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* Reset the default look */
.organizer-scale {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  flex-grow: 1; /* Allows slider to fill space between icons */
  cursor: pointer;
}


/* 1. Style the Track (the line) */
.organizer-scale::-webkit-slider-runnable-track {
  background: #999999;
  height: 2px;
}
.organizer-scale::-moz-range-track {
  background: #999999;
  height: 2px;
}

/* 2. Style the Thumb (the dot) */
.organizer-scale::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 36px;
  background-color: var(--color-secondary);
  border-radius: var(--btn-border-radius);
  margin-top: -8px; /* Centers dot on a 2px track */
  border: 1px solid var(--btn-border-color);
  cursor: grab;
  transition: 
    background-color 300ms ease,
    color 300ms ease,
    border-color 300ms ease;
}

.organizer-scale::-webkit-slider-thumb:hover, .organizer-scale::-webkit-slider-thumb:active {
  background-color: var(--btn-hover-background-color);
}


.organizer-scale::-moz-range-thumb {
    height: 18px;
    width: 32px;
    background-color: var(--color-secondary);
    border-radius: var(--btn-border-radius);
    border: 1px solid var(--btn-border-color);
    cursor: grab;
}


.organizer-scale::-webkit-slider-thumb:active {
  cursor: grabbing;
}


/* Icons */
.icon-grid-small, .icon-grid-large {
  display: grid;
  gap: 2px;
  flex-shrink: 0; /* Prevents icons from squishing */
}

.icon-grid-small {
  grid-template-columns: repeat(2, 1fr);
  width: 16px;
  height: 16px;
}

.icon-grid-small span {
  width: 7px;
  height: 7px;
  background-color: #999999;
}

.icon-grid-large {
  width: 16px; /* Matched to small grid width for symmetry */
  height: 16px;
}

.icon-grid-large span {
  width: 100%;
  height: 100%;
  background-color: #999999;
}

/* Responsive: Hide the entire control group on small screens */
@media screen and (max-width: 991px) {
    .scale-controls {
        display: none;
    }
}

.filter-buttons.is-sticky {
    position: sticky;
    /* Default sticky position is the header height */
    top: var(--header-height, 0px);
}

.filter-buttons.is-sticky.sticky-top-xxs { top: calc(var(--header-height, 0px) + var(--size-xxs)); }
.filter-buttons.is-sticky.sticky-top-xs  { top: calc(var(--header-height, 0px) + var(--size-xs)); }
.filter-buttons.is-sticky.sticky-top-s   { top: calc(var(--header-height, 0px) + var(--size-s)); }
.filter-buttons.is-sticky.sticky-top-m   { top: calc(var(--header-height, 0px) + var(--size-m)); }
.filter-buttons.is-sticky.sticky-top-l   { top: calc(var(--header-height, 0px) + var(--size-l)); }
.filter-buttons.is-sticky.sticky-top-xl  { top: calc(var(--header-height, 0px) + var(--size-xl)); }

.organizer.is-isotope-grid{
  display: block;
}

div.button{
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
}

.meta-wrapper{
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: var(--size-xxs);
  padding: var(--size-xxs);
}

.meta-infos-wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-xxs);
}
