.container {
    text-align: center;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:url(../IMAGES/COMPRESSED/TOP_IMAGES/GALLERY.jpg);
    background-size: cover;
    background-position: center;

    /*  this is where the magic happens:  */
    background-attachment: fixed;
}

/*VIDEO*/
.video-container-768, .video-title-768{
    display: none;
}

.video-title {
    text-decoration: underline #edf0f1 3px;
    text-underline-offset: 6px;
    text-align: center;
    margin-bottom: 1.87rem;
    color: #edf0f1;
    /*text-underline: #E0CD67;*/
}

.video-container {
    width: 68.75rem;
    height: 32.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6.25rem auto 6.25rem auto;
}

.video-content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: 1.87rem;
}

.video-content .video {
    width: 100%;
}

.image-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 1.25rem;
    margin-top: 3.5rem;
    cursor: pointer;

}

.image-list li {
    list-style: none;
    cursor: pointer;
    margin: 0.625rem;

}

.image-list img{
    width: 10rem;
    transition: all 0.3s;
    border: 3px solid  #44474f;


}

.image-list img.selected{
    width: 10rem;
    transition: all 0.3s;
    border: 3px solid  #E0CD67;
}

.image-list img:hover {
    transform: scale(1.04);
    filter: contrast(92%);
    border: 3px solid  #E0CD67;

}

/*CAROUSEL*/

.carousel-container{
    display: none;
    width: 100%;
    height: 50rem;
    background: #000;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-container .carousel{
    width: 21.9rem;
    margin: 9.37rem auto 0 auto;
    overflow: visible;
}

.carousel img{
    width: auto;
    max-height: 25rem;
    -webkit-box-reflect: below 20px linear-gradient(rgba(255,255,255,0.1),rgba(255,255,255,0.3)); /* this line gives error */
}

/*.image-position {*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    color: #E0CD67;*/
/*    background-color: #44474f;*/
/*    padding: 4px 8px;*/
/*    border-radius: 4px;*/
/*    font-size: 0.94rem;*/
/*    margin-bottom: 0.625rem;*/
/*}*/

#button-MEDIA {
    margin-top: 5rem;
    margin-left: 7.5rem;
}

/*GRID*/

.grid-container{
    box-sizing: border-box;

}


.grid-wrap{
    position: relative;
    margin: 6.25rem auto;
    padding: 0.625rem;
    width: 80%;
}

.grid-wrap ul img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border: 3px solid  #44474f;*/
    background-size: cover;
    transition: all 0.8s;
}

.grid-wrap ul img:hover{
    width: 98%;
    height: 100%;
    object-fit: cover;
    outline: 3px solid #E0CD67; /* Adjust border properties as needed */
    outline-offset: -1px; /* Negative offset moves the border inside the image */
    transform: scale(1.04);
    cursor: pointer;
}


.grid-wrap ul {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(3.75rem,auto));
    grid-auto-flow: dense;
    grid-gap: 2px;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
}

.grid-wrap ul li{
    list-style: none;
    padding: 0;
    margin: 0.625rem;

    position: relative;
}

/*YANN*/

.grid-wrap ul li:hover{
    filter: contrast(94%);
    transition: .2s;
    cursor: pointer;
}
.grid-wrap ul li:nth-child(1){
    grid-row: span 2;
    grid-column: span 4;
}

.grid-wrap ul li:nth-child(2){
    grid-row: span 2;
    grid-column: span 6;
}
.grid-wrap ul li:nth-child(3){
    grid-row: span 1;
    grid-column: span 6;
}
.grid-wrap ul li:nth-child(4){
    grid-row: span 2;
    grid-column: span 6;
}
.grid-wrap ul li:nth-child(5){
    grid-row: span 2;
    grid-column: span 6;
}
.grid-wrap ul li:nth-child(6){
     grid-row: span 1;
     grid-column: span 4;
 }
.grid-wrap ul li:nth-child(7){
    grid-row: span 2;
    grid-column: span 4;
}
.grid-wrap ul li:nth-child(8){
     grid-row: span 2;
     grid-column: span 6;
 }
.grid-wrap ul li:nth-child(9){
    grid-row: span 1;
    grid-column: span 6;
}
.grid-wrap ul li:nth-child(10){
    grid-row: span 1;
    grid-column: span 5;
}


/*ENCONTRO*/

.grid-wrap ul li:nth-child(11){
    grid-row: span 1;
    grid-column: span 5;
}
.grid-wrap ul li:nth-child(12){
    grid-row: span 2;
    grid-column: span 6;
}

/*WHEN 2 WORLDS MEET*/
.grid-wrap ul li:nth-child(13){
    grid-row: span 1;
    grid-column: span 5;
}
.grid-wrap ul li:nth-child(14){
    grid-row: span 1;
    grid-column: span 5;
}

/*PHOENIX*/
.grid-wrap ul li:nth-child(15){
    grid-row: span 2;
    grid-column: span 6;
}

/*RHODOS*/

.grid-wrap ul li:nth-child(16){
    grid-row: span 1;
    grid-column: span 6;
}
.grid-wrap ul li:nth-child(17){
    grid-row: span 1;
    grid-column: span 4;
}

/*WRAP*/
.grid-wrap ul li:nth-child(18){
    grid-row: span 2;
    grid-column: span 4;
}

/*HARMONIE*/

.grid-wrap ul li:nth-child(19){
    grid-row: span 2;
    grid-column: span 6;
}

.grid-wrap ul li:nth-child(20){
    grid-row: span 2;
    grid-column: span 8;
}

.grid-wrap ul li:nth-child(21){
    grid-row: span 2;
    grid-column: span 6;
}



/*TODO: SCREENSIZE 900-1200*/
@media screen and (min-width: 950px) and (max-width: 1200px) {

/*VIDEO*/

    .video-container {
        width: 57.5rem;

        margin: 4.4rem auto 4.4rem auto;
    }

    .video-content {

        margin-left: 1.25rem;
    }


    .image-list {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 1.25rem;
    }

    .image-list li {
        list-style: none;
        cursor: pointer;
        margin: 0.625rem;
    }

    .image-list img {
        width: 8.125rem;
        transition: all 0.3s;
    }

    /*CAROUSEL*/

    .carousel-container{
        /*display: none;*/
        width: 100%;
        height: 43.75rem;
    }

    .carousel-container .carousel{
        width: 43.75rem;
        margin: 9.37rem auto 0.625rem auto;
    }

    .carousel img{
        width: auto;
        max-height: 21.25rem;
    }


    #button-MEDIA {
        margin-top: 3.15rem;
        margin-left: 19rem;
    }

    /*GRID*/

    .grid-wrap{
        margin: 4.375rem auto;
    }
    .grid-wrap ul {
        grid-template-columns: repeat(auto-fit,minmax(3rem,auto));
        grid-gap: 2px;
    }
}



/*TODO: SCREENSIZE 768-950*/
@media screen and (min-width: 768px) and (max-width: 950px) {

    .video-container{
        display: none;
    }

    .video-title-768{
        text-decoration: underline #ffffff 3px;
        color: #ffffff;
        text-underline-offset: 6px;
        display: flex;
        justify-content: center;
        text-align: center;
        margin: 4.375rem auto 0 auto;
    }

    .video-768{
        width: 40.6rem;
    }
    .video-container-768 {
        width: 43.75rem;

        margin: 1.25rem auto 3.125rem auto;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }


    .video-container-768 .slider{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .video-slider-768{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .video-slider-768 li{
        list-style: none;
        cursor: pointer;
        margin: 1rem;
    }

    .video-slider-768 img{
        width: 8.125rem;
        transition: all 0.3s;
        border: 2px solid #44474f;

    }

    .video-slider-768 img:hover{
        transform: scale(1.1);
        filter: contrast(92%);

        border: 2px solid #E0CD67;
    }


    .video-slider-768 img.selected{
        width: 8.125rem;
        transition: all 0.3s;
        border: 3px solid  #E0CD67;
    }

    .image-list img:hover {
        transform: scale(1.04);
        filter: contrast(92%);
        border: 3px solid  #E0CD67;

    }

    /*CAROUSEL*/

    .carousel-container{
        /*display: none;*/
        width: 100%;
        height: 40.6rem;
    }

    .carousel-container .carousel{
        width: 17.5rem;
        margin: 9.37rem auto 0.625rem auto;
    }

    .carousel img{
        width: auto;
        max-height: 18.75rem;
    }

    #button-MEDIA {
        margin-top: 3.15rem;
        margin-left: 6rem;
    }

    /*GRID*/

    .grid-wrap{
        margin: 3.125rem auto;
    }

    .grid-wrap ul {
        grid-template-columns: repeat(auto-fit,minmax(2.25rem,auto));
        grid-gap: 2px;
    }
}

/*TODO: SCREENSIZE 480-768*/
@media screen and (min-width: 480px) and (max-width: 768px) {

    /*VIDEO'S'*/

    .video-container{
        display: none;
    }

    .video-title-768{
        text-decoration: underline #ffffff 3px;
        color: #ffffff;

        text-underline-offset: 6px;
        display: flex;
        justify-content: center;
        text-align: center;
        margin: 4.375rem auto 0 auto;
    }

    .video-768{
        width: 28rem;
    }
    .video-container-768 {
        width: 28rem;

        margin: 1.25rem auto 3.125rem auto;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }


    .video-container-768 .slider{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .video-slider-768{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .video-slider-768 li{
        list-style: none;
        cursor: pointer;
        margin: 1rem;
    }

    .video-slider-768 img{
        width: 6.125rem;
        transition: all 0.3s;
        border: 2px solid #44474f;

    }


    .video-slider-768 img.selected{
        width: 6.125rem;
        transition: all 0.3s;
        border: 3px solid  #E0CD67;
    }

    .video-slider-768 img:hover{
        transform: scale(1.1);
        filter: contrast(92%);

        border: 2px solid #E0CD67;
    }

    /*GRID */

    .grid-wrap{
        margin: 3rem auto;
    }

    .grid-wrap ul {
        display: block;
        justify-content: center;
        margin: 1rem auto;
        padding: 0;
    }

    .grid-wrap ul li{

        width: 80%;
        height: auto;
        list-style: none;
        padding: 0;
        margin: 1rem auto;

        position: relative;
    }

    .grid-wrap ul img:hover{
        width: 100%;
        height: 100%;
        object-fit: cover;
        outline: 3px solid #E0CD67; /* Adjust border properties as needed */
        outline-offset: -1px; /* Negative offset moves the border inside the image */
        transform: scale(1.02);
    }
    /*CAROUSEL*/

    .carousel-container{
        /*display: none;*/
        width: 100%;
        height: 32rem;
    }

    .carousel-container .carousel{
        width: 12.5rem;
        margin: 6.5rem auto 0.625rem auto;
    }

    .carousel img{
        width: auto;
        max-height: 16.5rem;
    }

    #button-MEDIA {
        margin-top: 2.2rem;
        margin-left: 4rem;
    }

}



/*TODO: SCREENSIZE 0-480*/
@media screen and (min-width: 0px) and (max-width: 480px) {

    /*VIDEO'S'*/

    .video-container{
        display: none;
    }
    .video-768 {
        width: 20rem;
    }

    .video-container-768 {
        width: 20rem;

        margin: 1.25rem auto 1.125rem auto;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .video-title-768{
        text-decoration: underline #ffffff 3px;
        color: #ffffff;
        text-underline-offset: 6px;
        display: flex;
        justify-content: center;
        text-align: center;
        margin: 2.375rem auto 0 auto;
    }
    .video-container-768 .slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .video-slider-768 {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .video-slider-768 li {
        list-style: none;
        cursor: pointer;
        margin: 1rem;
    }

    .video-slider-768 img {
        width: 4.75rem;
        transition: all 0.3s;
        border: 2px solid #44474f;

    }

    .video-slider-768 img.selected{
        width: 4.75rem;
        transition: all 0.3s;
        border: 3px solid  #E0CD67;
    }

    .video-slider-768 img:hover{
        transform: scale(1.1);
        filter: contrast(92%);

        border: 2px solid #E0CD67;
    }


    /*GRID */

    .grid-wrap{
        margin: 2rem auto;
    }

    .grid-wrap ul {
        display: block;
        justify-content: center;
        margin: 1rem auto;
        padding: 0;
    }

    .grid-wrap ul li{

        width: 85%;
        height: auto;
        list-style: none;
        padding: 0;
        margin: 1rem auto;

        position: relative;
    }

    .grid-wrap ul img:hover{
        width: 100%;
        height: 100%;
        object-fit: cover;
        outline: 3px solid #E0CD67; /* Adjust border properties as needed */
        outline-offset: -1px; /* Negative offset moves the border inside the image */
        transform: scale(1.02);
    }

    /*CAROUSEL*/

    .carousel-container{
        /*display: none;*/
        width: 100%;
        height: 28.6rem;
    }

    .carousel-container .carousel{
        width: 9rem;
        margin: 5.5rem auto 0.625rem auto;
    }

    .carousel img{
        width: auto;
        max-height: 14.75rem;
    }

    #button-MEDIA {
        margin-top: 2.2rem;
        margin-left: 1.85rem;
    }

}
