.GalleryPhotoContainer {  
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 20px;
    grid-auto-flow: row;
    grid-template-areas:
        "galleryPhoto1 galleryPhoto1 galleryPhoto2 galleryPhoto3"
        "galleryPhoto1 galleryPhoto1 galleryPhoto4 galleryPhoto4";
}
.GalleryPhotoContainer2 {  
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 300px 300px 300px 300px;
    gap: 20px;
    grid-auto-flow: row;
    grid-template-areas:
        "galleryPhoto5 galleryPhoto6 galleryPhoto6 galleryPhoto7"
        "galleryPhoto5 galleryPhoto6 galleryPhoto6 galleryPhoto8"
        "galleryPhoto9 galleryPhoto9 galleryPhoto11 galleryPhoto11"
        "galleryPhoto10 galleryPhoto10 galleryPhoto11 galleryPhoto11";
}

.GalleryPhotoContainer img, .GalleryPhotoContainer2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    
    -webkit-box-shadow: -3px -5px 5px -5px rgba(34, 60, 80, 0.6);
    -moz-box-shadow: -3px -5px 5px -5px rgba(34, 60, 80, 0.6);
    box-shadow: -3px -5px 5px -5px rgba(34, 60, 80, 0.6);
}

#gallery { 
    padding: 0;
    margin: 0;
    margin: 5% 10%;
}

.movie {
    background-color: #3F6ED4;
    color: white;
    margin: 5% 0;
    text-align: center;
    padding: 60px 0;
}
.movie video {
    width: 300px;
    height: 200px;
    object-fit: cover;
    display: inline-block;
    margin: 0 10px;
    border-radius: 15px;
}

.galleryPhoto1 { grid-area: galleryPhoto1; }
.galleryPhoto2 { grid-area: galleryPhoto2; }
.galleryPhoto3 { grid-area: galleryPhoto3; }
.galleryPhoto4 { grid-area: galleryPhoto4; }
.galleryPhoto5 { grid-area: galleryPhoto5; }
.galleryPhoto6 { grid-area: galleryPhoto6; }
.galleryPhoto7 { grid-area: galleryPhoto7; }
.galleryPhoto8 { grid-area: galleryPhoto8; }
.galleryPhoto9 { grid-area: galleryPhoto9; }
.galleryPhoto10 { grid-area: galleryPhoto10; }
.galleryPhoto11 { grid-area: galleryPhoto11; }

.gallery_slider {
    width: 100%;
    padding: 60px 10%;
    background-color: #3F6ED4;
}
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 1300px;
    margin: auto;
}
.slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
}
.slide {
    min-width: 25%;
    padding: 10px;
}
.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}
.play-button, .pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 18px;
}
.pause-button {
    display: none;
}
.prev, .next {
    z-index: 100;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    background: white;
    color: black;
    border: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    padding: 10px;
    height: 95%;
}
.next {
    border-radius: 0 10px 10px 0;
}
.prev { left: 10px; }
.next { right: 10px; }
@media (max-width: 600px) {
    .slide { min-width: 100%; }
}
@media (min-width: 600px) and (max-width: 1000px) {
    .slide { min-width: 50%; }
}
@media (min-width: 1000px) and (max-width: 1500px) {
    .slide { min-width: 33%; }
}

.GalleryPhotoContainer div {
    display: block;
    width: 100%;
    background-color: coral;
    border-radius: 20px;
    overflow: hidden;
}
.GalleryPhotoContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    -webkit-box-shadow: 0px 5px 25px -7px rgba(52, 96, 166, 0.2);
    -moz-box-shadow: 0px 5px 25px -7px rgba(52, 96, 166, 0.2);
    box-shadow: 0px 5px 25px -7px rgba(52, 96, 166, 0.2);
    transition: transform 0.3s ease; 
}
.GalleryPhotoContainer div:hover img {
    transform: scale(1.1); 
}
.GalleryPhotoContainer2 div:hover img {
    transform: scale(1.1); 
}
.GalleryPhotoContainer2 div {
    display: block;
    width: 100%;
    background-color: coral;
    border-radius: 20px;
    overflow: hidden;
}
.GalleryPhotoContainer2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    -webkit-box-shadow: 0px 5px 25px -7px rgba(52, 96, 166, 0.2);
    -moz-box-shadow: 0px 5px 25px -7px rgba(52, 96, 166, 0.2);
    box-shadow: 0px 5px 25px -7px rgba(52, 96, 166, 0.2);
    transition: transform 0.3s ease; 
}

.galleryContent {
    padding: 5% 10% 0 10%;
}
.galleryContent h2 {
    font-size: 35px;
    margin-bottom: 30px;
}
.galleryContent p {
    width: 60%;
}

/* адаптация галереи */
@media (min-width: 1200px) and (max-width: 1500px) {
    .GalleryPhotoContainer2 {  
        grid-template-rows: 200px 200px 200px 200px;
    }
}
@media (min-width: 1000px) and (max-width: 1200px) {
    .GalleryPhotoContainer2 {  
        grid-template-rows: 200px 200px 200px 200px;
    }
}
@media (min-width: 600px) and (max-width: 1000px) {
    .galleryContent p {
        width: 90%;
    }
    .GalleryPhotoContainer {  
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 300px 300px;
        grid-template-areas:
            "galleryPhoto1 galleryPhoto1 galleryPhoto2" 
            "galleryPhoto3 galleryPhoto4 galleryPhoto4";
    }
    .GalleryPhotoContainer2 {  
        display: grid; 
        grid-template-columns: 1fr 1fr 1fr; 
        grid-template-rows: 300px 200px 300px 200px; 
        grid-template-areas: 
            "galleryPhoto5 galleryPhoto5 galleryPhoto6"
            "galleryPhoto7 galleryPhoto8 galleryPhoto8"
            "galleryPhoto9 galleryPhoto9 galleryPhoto10"
            "galleryPhoto11 galleryPhoto11 galleryPhoto11";
    }
}
@media (min-width: 300px) and (max-width: 600px) {
    .galleryContent p {
        width: 100%;
    }
    .GalleryPhotoContainer {  
        grid-template-columns: 1fr;
        grid-template-rows: 300px 300px 300px 300px;
        grid-template-areas:
            "galleryPhoto1" "galleryPhoto2" 
            "galleryPhoto3" "galleryPhoto4";
    }
    .GalleryPhotoContainer2 {  
        display: grid; 
        grid-template-columns: 1fr; 
        grid-template-rows: 300px 300px 300px 300px 300px 300px 300px; 
        grid-template-areas: 
            "galleryPhoto5"  "galleryPhoto6"
            "galleryPhoto7" "galleryPhoto8"
            "galleryPhoto9" "galleryPhoto10"
            "galleryPhoto11" ;
    }
}