/*@font-face {
  font-family: 'VictorMono', monospace;
  src: url('../fonts/victormono/WOFF2/VictorMono-Regular.woff2') format('woff2');
  font-style: normal;
}*/

@font-face {
  font-family: "VictorMono";
  src: url(../fonts/victormono/WOFF2/VictorMono-Regular.woff2);
}

@font-face {
  font-family: "VictorMono";
  src: url(../fonts/victormono/WOFF2/VictorMono-Light.woff2);
  font-weight: 300;
}

@font-face {
  font-family: "VictorMono";
  src: url(../fonts/victormono/WOFF2/VictorMono-SemiBold.woff2);
  font-weight: 600;
}

.gallery-grid{
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding-left: 127.5px;
  padding-right: 128px;
  padding-bottom: 5%;
}

.block-gallery .gallery-caption{
  margin-left: 123px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.block-image{
  padding-bottom: 75px;
}
.block-text{
  line-height: 1;
  padding-bottom: 75px;
}
.block-video{
  padding-bottom: 75px;
}
.audio-block{
  padding-bottom: 75px;
  width: inherit !important;
  padding-top: 75px;
  padding-left: 25%;
  padding-right: 25%;
}
.video-container{
  margin-bottom: 25px;
}
.columns--1 .block-text p{
  padding-right: 240px;
  padding-left: 230px;
}

.columns--2 .block-quote{
  padding-right: 140px;
}



/*
.columns--1 .block-video{
  height: 100vh;
  width: 100%;
}

 */
:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #afafaf;
  --color-light: #fbfbf9;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;

}

html {
  font-family: 'VictorMono', monospace;
  color: var(--color-text);
  background: var(--color-background);
}
img {
  width: 100%;
}
body {
  /* padding: var(--padding); */
  max-width: 100vw;
  margin: 0 auto;
  /* background-color: red; */
  overflow-x: hidden;
}
li {
  list-style: none;
  margin-left: 3rem;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  font-weight: lighter;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}
.block-author{
  padding-bottom: 75px; /* margin geht hier iwi nicht*/
  margin-left: 85px;
  font-weight: 400;
  color: #afafaf;
}
.block-button{
  margin-bottom: 25px;
  width: 50% !important;
  margin-left: 25%;
  word-wrap: break-word;
}
.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 50px 0 25px 0;
}

.menu {
  display: flex;
  margin-right: 65px;
}
.menu a {
  padding: 1rem;
  display: block;
}
.menu a[aria-current] {
  text-decoration: underline;
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}
.note-subheading{
  padding-left: 1rem;
  line-height: normal;
  font-weight: 600;
  font-size: 32px;
}
.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 20rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fill, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2 {
  line-height: normal;
  font-weight: 600;
  padding-right: 50px;
}

h1{
  padding-left: 85px;
  margin-bottom: 25px;
  font-size: 60px;
  padding-top: 75px;
  font-weight: lighter;
}

h2{
  font-size: 32px;
  padding-left: 85px;
  padding-bottom: 40px;
  padding-top: 25px;
  font-weight: lighter;
}

.text {
  font-size: 20px;
  line-height: 1.5em;
  font-weight: 400;
}
.text a {
  text-decoration: underline;
}

.text p,
.text ul,
.text ol {
  padding-bottom: 1.5rem;
  font-size: 1.25rem;
  line-height: 150%;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: 'VictorMono', monospace;
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}

.text blockquote {
  font-size: 20px;
  line-height: 1.325em;
  padding-left: 123px;
  padding-right: 240px;
  padding-bottom: 25px;
  font-weight: 700;
}

.columns--1{
  overflow: hidden;
}

.map-description{
  margin: 0;
  padding-left: 85px;
  padding-right: 240px;
}

.text blockquote p{
  font-size: 40px;
  line-height: 1.5em;
  margin: 0;
}
.text blockquote footer {
  font-size: 20px;
  font-style: italic;
  margin-top: 50px;
  color: #afafaf;
}

.text figcaption {
  padding-bottom: 75px;
  text-align: left;
  padding-left: 10%;
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 0.56;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
  margin-top: 3rem;
}

.video {
  position: relative;
  display: block;
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  margin-bottom: 50px;
}

.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  margin-bottom: 50px;
  padding-top: .75rem;
  line-height: 1.5em;
  color: var(--color-text-grey);  
}

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}

.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

header > h1{
  /* position: absolute; */
}

.hero{
  /* border: pink 100px solid; */
}

.testklasse{
  color: #7e9abf;
}

.textklasse{
  font-family: 'VictorMono', monospace;
}

.quoteklasse{
  background-color: red;
}

.bildklasse{
  border: 10px solid #7e9abf;
}

.videoklasse{
  border: #d16464 10px solid;
}

.gallerieklasse{
  border: #a7bd68 10px solid;
}

#bildid{
  width: 20px;
}

.author{
  font-family: serif;
  color: var(--color-code-comment);
  font-size: smaller;
}

.notes-content{
  padding: 3rem;
}

.note-audio{
  width: 100%;
}

.home-hero{
  width: 100vw;
  height: 80vh;
  background-image: url(../images/hero-main.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* filter: grayscale(100%); 
    -webkit-filter: grayscale(100%); 
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%); 
    -o-filter: grayscale(100%);
    filter: url(resources.svg#desaturate); 
    filter: gray; 
    -webkit-filter: grayscale(1); */
}

.home-hero > h1{
  font-size: 6vw;
  padding: 1rem;
  font-family: VictorMono;
}

.home-header{
  font-size: 4vw;
  padding: 1rem;
  font-family: VictorMono;
  display: flex;
  justify-content: space-between;
  position: absolute;
  z-index: 5;
  width: 100%;

}

.home-info{
  background-color: rgba(104, 143, 119, 1);
  font-family: VictorMono;
  width: 100vw;
  height: 100%;
  padding: 2rem;
  color: rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
}

.home-about{
  width: 60vw;
}

.home-about > h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid rgb(0, 0, 0);
  margin-bottom: 20px;
}

.home-about > p{
  font-size: 1.25rem;
}

.home-daten{
  width: 30vw;
}

.home-daten > h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid rgb(0, 0, 0);
  margin-bottom: 20px;
}

.home-subhead{
  font-size: 3rem;
  margin: 2rem;
  margin-top: 4rem;
  font-family: VictorMono;
}

.logo{
  margin-top: -1rem;
  font-weight: lighter !important;
  display: flex;
  align-items: center;
}

.logo-graz{
  padding: 0 !important;
  z-index: 6;
  color: rgba(239, 63, 83, 1);
  padding-bottom: 1rem !important;
}

.logo-geschichten{
  padding: 0 !important;
  position: absolute;
  padding-left: 1rem !important;
  z-index: 5;
  color: rgba(203, 213, 205, 1);
}

.footer{
  width: 100vw;
  background: rgba(76, 76, 76, 0.7);
  padding: 2rem;
  display: flex;
  padding-bottom: 10vw;
}

.footer-about-wrapper > h1 {
  font-size: 1rem;
  color: white;
  font-family: VictorMono;
  margin-bottom: 10px;
}

.footer-about{
  font-family: VictorMono;
  color: rgb(180, 180, 180);
  width: 40vw;
}

.footer-about-wrapper{
  margin-right: 4rem;
}

.footer-partner > h1{
  font-size: 1rem;
  color: white;
  font-family: VictorMono;
  margin-bottom: 10px;
}

.footer-logo{
  width: 350px;
  object-fit: contain;
  padding-right: 3rem;
  padding-top: 2rem;
  margin-top: 1rem;
}

.footer-nav{
  margin-right: 10rem;
  display: flex;
  flex-direction: column;
}

.footer-nav > h1 {
  font-size: 1rem;
  color: white;
  font-family: VictorMono;
  margin-bottom: 10px;
}

.footer-nav > a {
  font-size: 1rem;
  color: rgb(180, 180, 180);
  font-family: VictorMono;
}

.footer-nav > a:hover{
  color: #019A48;
}

.about-link{
  font-size: 1.5rem;
}

.about-link:hover{
  color: rgba(239, 63, 83, 1);
}

.spacer{
  width: 100vw;
  height: 15vh;
  z-index: 5;
}

@media screen and (min-width: 60rem) {
  /*
  body {
    --padding: 3rem;
  }
*/
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

/* Layout-Field Styles */
.layout {
  margin-bottom: 0;
}
.columns {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.column {
  flex: 1 1 0;
  min-height: 0; /* Allow columns to shrink */
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow flex items to shrink below content size */
  width: 100%;
}

/* Ensure blocks within columns have proper spacing */
.column > * {
  margin-bottom: 2rem;
  width: 100%;
}

.column > *:last-child {
  margin-bottom: 0;
}

/* Spaltenverhältnisse für typische Layouts */
.columns--2 .column--8 { flex: 2 1 0; }
.columns--2 .column--4 { flex: 1 1 0; }
.columns--2 .column--6 { flex: 1 1 0; }
.columns--3 .column { flex: 1 1 0; }

/* Fix for blocks with absolute positioning or padding-bottom */
.column .block-video,
.column .block-iframe,
.column .block-image-slider,
.column .block-scroll-slider,
.column .block-map {
  width: 100% !important;
  position: relative;
  flex-shrink: 0; /* Prevent shrinking */
  min-width: 0; /* Allow flex items to shrink below content size */
}

/* Ensure proper height calculation for responsive blocks */
.column .block-video .video-container,
.column .block-iframe,
.column .block-image-slider .image-slider-container,
.column .block-scroll-slider .scroll-slider-container,
.column .block-map .map-wrapper {
  position: relative;
  width: 100% !important;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  min-height: 200px; /* Minimum height to ensure visibility */
}

/* Specific fixes for different block types */
.column .block-iframe {
  width: 100% !important;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio for iframes */
  min-height: 200px;
  display: block;
}

.column .block-video .video-container {
  width: 100% !important;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio for videos */
  min-height: 200px;
}

.column .block-image-slider .image-slider-container {
  width: 100% !important;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio for image sliders */
  min-height: 200px;
}

.column .block-scroll-slider .scroll-slider-container {
  width: 100% !important;
  height: 0;
  padding-bottom: 56.7%; /* Original aspect ratio for scroll sliders */
  min-height: 200px;
}

.column .block-map .map-wrapper {
  width: 100% !important;
  height: 500px; /* Fixed height for maps */
  min-height: 300px;
}

/* Ensure iframes and videos are visible */
.column .block-iframe iframe,
.column .block-video .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100%;
  border: 0;
  min-height: 200px;
  object-fit: contain; /* Show full video without cropping */
  background: var(--color-black);
}

@media (max-width: 800px) {


  .columns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .column > * {
    margin-bottom: 1.5rem;
  }
  
  .column > *:last-child {
    margin-bottom: 0;
  }

  .home-info{
    flex-direction: column;
    padding: 1rem;
  }

  .home-about{
    width: 90vw;
    margin-bottom: 40px;
    margin-top: 20px;
  }

  .home-daten{
    width: 90vw;
    margin-bottom: 40px;
  }

  .footer{
    padding: 1rem;
    flex-direction: column;
    padding-bottom: 4rem;
  }

  .footer-about{
    width: 90vw;
    margin-bottom: 40px;
  }

  .footer-logo{
    width: 300px;
    padding-top: 1rem;
  }

  .lead > p {
    padding: 1rem !important;
  }

  .block-quote{
    padding: 1rem !important;
    overflow-wrap: break-word;
  }

  .block-text p{
    padding: 1rem !important;
  }

  .logo-graz{
    font-size: 30px;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .logo-geschichten{
    font-size: 30px;
    margin-bottom: 0 !important;
    padding-top: 1rem !important;
  }

  .note-title{
    font-size: 40px;
  }

  .home-subhead{
    margin: 10vh 0;
    margin-bottom: 3vh;
    padding: 1rem;
  }
}

/* Notes Grid Layout - Allgemeine Styles */
.notes-grid {
  display: grid;
  gap: 0.5rem;
  padding: 2rem;
  /*background-color: rgba(104, 143, 119, 1);*/
  padding-bottom: 10rem;
}

/* Homepage-spezifische Note-Grid Styles */
.home .notes-grid {
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

.home .note-card {
  position: relative;
  aspect-ratio: 16/9;
  background: #f5f5f5;
  overflow: hidden;
}

.home .note-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.home .note-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.home .note-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: lighter;
  font-weight: 300;
  text-align: center;
  background: rgba(0, 0, 0);
  color: white;
  font-size: 2rem !important;
  transition: opacity 0.3s ease;
  z-index: 2;
  font-family: VictorMono;
}

.home .note-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home .note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home .note-card:hover .note-title {
  opacity: 0;
}

.home .note-card:hover .note-cover {
  opacity: 1;
}

/* Ursprüngliche Note-Styles für einzelne Note-Seiten */
.note-card {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.note-card:hover {
  transform: translateY(-4px);
}

.note-cover {
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
}

.note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.note-title {
  margin: 0;
  padding: 1rem;
  line-height: 1.4;
}

.note-title a {
  color: inherit;
  text-decoration: none;
}

.note-title a:hover {
  color: #666;
}

@media screen and (max-width: 768px) {

  .column{
    padding: 0;
  }

  .home .notes-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .home .note-title {
    font-size: 1.25rem;
    padding: 1rem;
  }
}

/* Image Slider Styles */
.block-image-slider {
  margin: 3rem 0;
}

.image-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--color-light);
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.image-slider-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden; /* Hide by default */
}

.image-slide.active {
  opacity: 1;
  visibility: visible; /* Show when active */
}

.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Ensure proper display */
}

/* Ensure first image is immediately visible */
.image-slide:first-child {
  visibility: visible;
  opacity: 1;
}

.image-slide:first-child.active {
  visibility: visible;
  opacity: 1;
}

.image-slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.image-slider-prev,
.image-slider-next {
  width: 3rem;
  height: 3rem;
  background: rgba(224, 224, 224, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  pointer-events: auto;
  font-family: VictorMono;
}

.image-slider-prev:hover,
.image-slider-next:hover {
  background: rgba(0, 0, 0, 0.9);
}

.image-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
}

.image-slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  pointer-events: auto;
}

.image-slider-dot.active {
  background: white;
}

.image-slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.image-slider-caption {
  padding-top: 0.75rem;
  line-height: 1.5em;
  color: var(--color-text-grey);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-slider-nav {
    padding: 0 0.5rem;
  }
  
  .image-slider-prev,
  .image-slider-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .image-slider-dots {
    bottom: 0.5rem;
  }
  
  .image-slider-dot {
    width: 0.5rem;
    height: 0.5rem;
  }
}

/* Scroll Slider Styles */
.block-scroll-slider {
  margin: 3rem 0;
  /* Ensure the slider is contained within its parent */
  overflow: hidden;
  position: relative;
  margin-bottom: 4rem !important;
}

.scroll-slider-container {
  position: relative;
  width: 100%;
  height: 0px;
  padding-bottom: 56.7%; 
  scroll-padding-top: 20vh;
  /* Ensure container doesn't overflow */
  overflow: hidden;
}

.scroll-slider-content {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  height: 100%;
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-y: hidden;
  overflow-x: scroll;
  scroll-behavior: smooth;
  /* Prevent horizontal overflow beyond container */
  max-width: 100%;
  /* Add momentum scrolling for better mobile experience */
  -webkit-overflow-scrolling: touch;
}

.scroll-slider-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  /* Ensure items don't overflow */
  max-width: 100%;
}

.scroll-slider-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scroll-slider-caption {
  padding-top: 0.75rem;
  line-height: 1.5em;
  color: var(--color-text-grey);
  text-align: center;
}

/* Responsive adjustments for scroll slider */
@media (max-width: 768px) {
  .scroll-slider-container {
    padding-bottom: 75%; /* Taller aspect ratio on mobile */
  }
  
  .block-scroll-slider {
    /* Ensure proper containment on mobile */
    margin: 2rem 0;
    margin-bottom: 15vh !important;
    /* Prevent any potential overflow issues */
    max-width: 100vw;
    overflow: hidden;
  }
  
  .scroll-slider-content {
    /* Ensure smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Prevent horizontal overflow */
    max-width: 100%;
  }
}

/* Gallery Styles */
.block-gallery {
  margin: 3rem 0;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  line-height: 0;
  /* Default: 3 columns on desktop */
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-caption {
  font-size: 0.875rem;
  line-height: 1.4em;
  color: var(--color-text-grey);
  text-align: left;
  margin: 0;
}

/* Responsive grid for gallery */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid.columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .gallery-grid,
  .gallery-grid.columns-3,
  .gallery-grid.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid,
  .gallery-grid.columns-2,
  .gallery-grid.columns-3,
  .gallery-grid.columns-4 {
    grid-template-columns: 1fr;
  }
  
  .gallery-item-caption {
    font-size: 0.8rem;
  }
}

/* Video and Iframe Block Styles */
.block-video,
.block-iframe {
  margin: 3rem 0 !important;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.block-video .video-container,
.block-iframe {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio by default */
  background: var(--color-black);
  min-height: 200px;
}

.block-video .video-container iframe,
.block-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 200px;
  object-fit: contain; /* Show full video without cropping */
}

/* Specific video styling to prevent cropping */
.block-video .video-container iframe {
  object-fit: contain;
  background: var(--color-black);
}

.block-video .video-caption {
  line-height: 1.5em;
  color: var(--color-text-grey);
}

/* Responsive adjustments for video and iframe blocks */
@media (max-width: 768px) {
  .block-video,
  .block-iframe {
    margin: 2rem 0 !important;
  }
  
  .block-video .video-container,
  .block-iframe {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio on mobile */
    min-height: 150px;
  }
  
  .block-video .video-caption {
    font-size: 0.9rem;
    padding-top: 0.5rem;
  }
}

/* Ensure proper spacing between blocks */
.block-video + .block-video,
.block-video + .block-iframe,
.block-iframe + .block-video,
.block-iframe + .block-iframe {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .block-video + .block-video,
  .block-video + .block-iframe,
  .block-iframe + .block-video,
  .block-iframe + .block-iframe {
    margin-top: 1.5rem;
  }
}


