body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
}

header .logo img {
    height: 70px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav li {
    margin-left: 40px;
}

header nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.4em;
}

header .social-media img {
    height: 70px;
}

main {
}

section {
    padding: 40px 20px;
}

#upcoming-events {
    padding: 0;
    min-height: 100vh;
    display: flex;
}

#upcoming-events .event-details {
    display: flex;
    align-items: stretch;
    width: 100%;
}

#upcoming-events .image-wrapper {
    width: 50%;
}

#upcoming-events .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#upcoming-events .event-info {
    width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#upcoming-events .event-info-top,
#upcoming-events .event-info-bottom {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
}

#upcoming-events .event-info-top {
    flex-direction: column;
}

#upcoming-events .event-info-bottom {
    background-color: #333;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5vh 50px;
    flex-direction: column;
}

#upcoming-events .event-info-bottom p {
    color: white;
}

#upcoming-events .event-info h2 {
    color: #f7c548;
    font-size: 3em;
    text-align: center;
    margin: 0;
}

#upcoming-events .event-info p {
    font-size: 1.5em;
}

#upcoming-events .event-info .event-date {
    font-size: 1.2em;
    color: #f7c548;
    margin-top: 10px;
}

#upcoming-events .upcoming-sponsor-logo {
    height: 100px;
    align-self: flex-end;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

#about,
#about-eleni {
    padding: 0;
    height: 100vh;
    display: flex;
}

#about .about-member,
#about-eleni .about-member {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#about .about-member img,
#about-eleni .about-member img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

#about .about-member .member-info,
#about-eleni .about-member .member-info {
    width: 50%;
    box-sizing: border-box;
    background-color: #3a5a8a;
    color: white;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

#about .about-member .member-info p,
#about-eleni .about-member .member-info p {
    text-align: justify;
}

#organizing-committee,
#scientific-committee {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f0f0f0;
}

.committee-container {
    padding: 40px;
    margin: 40px;
}

#organizing-committee .committee-container {
    background-color: #a52a2a;
}

#scientific-committee .committee-container {
    background-color: #3a5a8a;
}

#organizing-committee h2,
#scientific-committee h2 {
    color: white;
    margin-bottom: 40px;
}

.committee-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.committee-members .member {
    text-align: left;
    background-color: white;
}

.committee-members .member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.committee-members .member-details {
    padding: 15px;
}

.committee-members .member p {
    font-weight: bold;
    margin: 0 0 5px 0;
}

.committee-members .member span {
    font-size: 0.9em;
    color: #555;
}

#Festival {
    background-color: white;
    padding: 40px 20px;
    text-align: center;
}

.gallery-grid-2, .gallery-grid-3 {
    display: grid;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto 15px auto;
}

.gallery-grid-2 {
    grid-template-columns: 2fr 3fr;
}

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

.gallery-grid-2 img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.gallery-grid-2 img:first-child {
    filter: grayscale(100%);
}

.gallery-grid-3 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: 40px auto 0 auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

#Festival h2 {
    font-size: 2em;
}

.slideshow-title {
    text-align: center;
    margin-top: 40px;
    font-size: 2em;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

.vertical-slideshow {
    width: -moz-fit-content;
    width: fit-content;
    margin: 40px auto 0 auto;
    position: relative;
}

.mySlides-vertical {
    display: none;
}

.mySlides-vertical img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    vertical-align: middle;
}

.vertical-slideshow .prev, .vertical-slideshow .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.vertical-slideshow .prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.vertical-slideshow .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.vertical-slideshow .prev:hover, .vertical-slideshow .next:hover {
    background-color: rgba(0,0,0,0.8);
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

#sponsors {
    padding: 40px 20px;
    background-color: white;
}

.sponsor-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.sponsor-logos img {
    max-height: 150px;
    max-width: 45%;
    object-fit: contain;
}

footer {
    background-color: #333;
    color: white;
    padding: 80px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.7em;
}

.contact-item img {
    height: 50px;
    margin-right: 20px;
}

.contact-item a[href^="mailto:"] img {
    height: 60px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #upcoming-events,
    #about,
    #about-eleni {
        height: auto;
        min-height: auto;
    }

    #organizing-committee,
    #scientific-committee {
        min-height: auto;
    }
}
