h1 {
    font-size: 64px;
    line-height: 96px;
}

.container {
    background-color: #000000;
    color: white;
}

.about-section {
    max-width: 1320px;
    margin: 0 auto;
}

.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 140px;
}

.header img {
    width: 50%;
    max-width: 624px;
    flex: 0 0 auto;
    object-fit: cover;
    box-sizing: border-box;
    padding-left: 20px;
}

.header-text {
    width: 50%;
    flex: 0 0 auto;
    box-sizing: border-box;
    margin-left: 20px;
}

.content {
    width: 83.33%;
    margin: 0 auto;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
}

.logo-container img {
    width: 339px;
}

#gallery {
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 50px;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.grid-item {
    position: relative;
    height: 387px;
}

.grid-item h5 {
    position: absolute;
    bottom: 10px;
    left: 30px;
    font-size: 22px;
    line-height: 33px;
    margin: 0;
}

.grid-item:hover {
    cursor: pointer;
}

.grid-item h5 {
    transition: 0.5s ease-in-out;
}

.grid-item:hover h5 {
    transform: translateY(-20px);
}

.grid-gallery img {
    object-fit: cover;
    width: 100%;
    height: 387px;
}

.hidden {
    display: none;
}

.slideshow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: relative;
    max-width: 80%;
    height: auto;
}

#slideshowImage {
    width: 100%;
    max-height: 99vh;
    object-fit: contain;
}

.close:hover, .controls:hover {
    cursor: pointer;
} 

.toggle-play-show {
    display: inline;
}

.toggle-play-hide {
    display: none;
}

.controls {
    position: fixed;
    top: 20px;
    right: 60px;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #444;
}

#progress {
    height: 3px;
    background: #4592ff;
    width: 0%;
}

.toggle-progress-show {
    display: block;
}

.toggle-progress-hide {
    display: none;
}

.prev, .next {
    position: fixed;
    top: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.prev {
    left: 50px;
}

.next {
    right: 50px;
}

@media (max-width: 1024px) {
    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .grid-gallery {
        grid-template-columns: repeat(1, 1fr);
    };

    #gallery {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 630px) {
    h1 {
        font-size: 44px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 35px;
    }
}