.section1 {
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: background-image 0.5s ease-in-out;
    z-index: 0;
}
.custom-hero {
    position: relative;
    text-align: center;
    padding: 0;
    z-index: 4;
    top:0
}

.custom-hero h1{
    position: relative; 
    padding-top: 300px;
    padding-bottom: 15px;
    text-shadow: -2px 2px 5px rgba(255, 255, 255, 0.7), 2px -2px 5px rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    font-weight: bold;
    width: 70%;
    margin: 0 auto;
    z-index: 7;
    color: rgba(19, 0, 32, 0.904);
}

.custom-hero p {
    font-size: 1rem;
    max-width: 70%;
    color: rgba(19, 0, 32, 0.904);
    z-index: 7;
    margin: 0 auto;
}

.stroke-decor {
    position: absolute;
    left: 200px;
    transform: translateX(-50%);
    width: 120%;
    opacity: 1;
    top: -60px;
    z-index: -1; 
}
.section1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 1) 0%,      
    rgba(255, 255, 255, 0.755) 10%,     
    rgba(138, 43, 226, 0.5) 40%,   
    rgba(138, 43, 226, 0.7) 60%,  
    rgba(22, 0, 32, 0.755) 90%,       
    rgb(22, 0, 32) 100%      
);
    opacity: 1; 
    z-index: 1;
}

.section1 {
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.events-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5vw;
    padding-left: 15vw;
    padding-right: 15vw;
    padding-top: 0;
    padding-bottom: 10vh;   
}
.event {
    position: relative;
    z-index: 1;
    background-color: rgba(19, 0, 32, 0.904); 
    border-radius: 10px;
    box-shadow: 0px 0px 12px rgb(0, 0, 0);
    justify-content: center;
    padding-top: 1em;
    padding-bottom: 1em;
    
}

.event h1 {
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: -0.7px 0.7px 2.1px rgb(0, 0, 0);
    color: #7c7c7c;
    text-align: center;
}
.event h2 {
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: -0.7px 0.7px 2.1px rgb(0, 0, 0);
    color: #4e868a;
    text-align: center;
}
.image-grid {
    display: flex;
    width: 100%;
    height: auto;         
    align-items: stretch; 
}

.large-image,
.small-images {
    flex: 1;
    display: flex;
    flex-direction: column; 
}

.large-image a {
    width: 100%;
    height: 100%;
    display: block;
}

.large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: center; 
    display: block;
}
.large-image img:hover {
    transition: transform 0.3s ease, filter 0.3s ease; 
    filter: brightness(0.5);
    transform: scale(1.05);
} 

.small-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);      
    align-items: stretch;
}
.small-images img,
.large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.small-images img:hover {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.5);
    transform: scale(1.05);
}
.wide-format-event .image-grid {
    display: flex;
    flex-direction: column; 
    width: 100%; 
}
.wide-format-event .large-image {
    width: 100%;
    text-align: center; 
}
.wide-format-event .large-image img.wide-image {
    width: 100%; 
    height: auto; 
}
.wide-format-event .small-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    height: 100%; 
}

.wide-format-event .small-images img {
    width: 100%;
    height: 100%;     
    object-fit: cover;  
}
.small-images a.hidden {
    position: absolute;
    left: -9999px; 
}
.event {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.toggle-text {
    display: block;
    margin: 1em auto;
    margin-bottom: 0;
    width: 0;
    height: 0;
    border-left: 2em solid transparent;
    border-right: 2em solid transparent;
    border-top: 1em solid #312061;
    cursor: pointer;
}
.toggle-text {
    transition: transform 0.3s ease-in-out;
}
.event-description {
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.333);
    color: #4e868a;
    padding: 15px 15px;
    border-radius: 5px;
    text-align: justify;
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.5;
    letter-spacing: 0.5px;
}
.event-description p {
    font-size: 0.8em;
}
.event-description strong {
    font-size: 1.1em;
    font-weight: 600;
    font-style: italic;
    font-family: 'Merriweather';
}
.event.expanded .event-description {
    display: block;
}
.featured-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    vertical-align: middle;
    position: relative;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgb(22, 0, 32) 0%, black 100%);
}

.toggle-btn {
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 30px;
}

.artworks-slider {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.artworks-slider.open {
    max-height: 550px; 
}

.swiper-container {
    width: 100%;
    margin-right: auto;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 10px;
}
.swiper-slide {
    transition: opacity 0.3s ease-in-out;
}
.small-images a,
.large-image a {
    position: relative;
    display: block;
    overflow: hidden;
}

.small-images a::after,
.large-image a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #006269, rgba(0, 98, 105, 0.5));
    mix-blend-mode: multiply;
    opacity: 0;                 
    transition: opacity 0.4s ease;
    pointer-events: none;      
}

.small-images a:hover::after,
.large-image a:hover::after {
    opacity: 1;                
}
@media screen and (max-width: 1280px){ 
    .custom-hero h1{
        padding-top: 180px;
        max-width: 80%;
        margin:0 auto;
        font-size: 1.5rem;
        font-weight: bold;
        z-index: 7;
        color: #01002b;
    }
    .custom-hero p {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }
    .stroke-decor {
        left: 20vw;
        width: 120%;
        top: -30px;
    }
}
@media screen and (max-width: 768px) {
    .custom-hero {
        position: relative;
        text-align: center;
        padding: 0;
        z-index: 4;
        top:700
    }
    .custom-hero h1{
        position: relative; 
        padding-top: 30px;
        font-size: 1.5rem;
        font-weight: bold;
        z-index: 7;
        color: #01002b;
    }
    .custom-hero p {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
        text-shadow: none;

    }

    .stroke-decor {
        left: 20vw;
        width: 120%;
        top: -50px;
    }
     .image-grid {
        flex-direction: column; 
    }

    .large-image {
        width: 100%; 
    }

    .small-images {
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-rows: 1fr;                   
    }

    .small-images img {
        width: 100%;
        height: 100%;     
        object-fit: cover; 
    }

    .wide-format-event .small-images {
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-rows: 1fr;
    }

    .wide-format-event .small-images img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .events-wrapper {
        padding: 3vw;
        padding-top: 11vw;
        padding-bottom: 7vw;
    }
    .swiper-container {
        width: 100%;
        margin-left: 0vw;
        margin-right: auto;
        overflow: hidden;
    }
      .large-image {
    height: auto !important;
  }
  .large-image img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    display: block;
  }
} 