html {transition: 1s;}
body {
    margin: 0;
    background: url("../IMAGES/slideA.png");
    background-size: cover;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    transition: 1s;
    color: white;
}
a {color: rgb(150, 150, 255);}
h4 {font-size: smaller;}
button {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    padding-top: 7px;
    padding-bottom: 5px;
    padding: 12px;
    color: white;
    width: 150px;
    text-align: center;
    font-size: 16px;
    border: 1px solid white;
    display: block;
    background-color: rgba(0,0,0,0.6);
}

.darkener {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropdownCont {
    margin-top: -1px;
    display: none;
    position: absolute;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 160px;
    border: 1px solid white;
}
.dropdownCont a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: 0.5s;
}
.dropdown:hover .dropdownCont {display: block;}
.dropdownCont a:hover {background-color: rgba(255, 255, 255, 0.2);}

.gridLeft {
    grid-area: left;
    aspect-ratio: 1/1;
    overflow-y: scroll;
    overflow-x: hidden;
}
.gridLeft::-webkit-scrollbar {width: 5px;}
.gridLeft::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.5);
    border-radius: 5px;
}
.gridRight {
    border-radius: 15px;
    grid-area: right;
}
.imgCycleCont {
    height: auto;
    border-radius: 15px;
    grid-area: footer;
}
.grid {
    width: 94%;
    margin: 3%;
    color: white;
    display: grid;
    column-gap: 50px;
    grid-template-areas: 'left left left right right right right' 'footer footer footer right right right right';
}

.mainImg {
    width: 100%;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: 1s;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
    cursor: pointer;
}

.slidesGrid {
    margin: 3%;
    width: 94%;
    height: auto;
    display: grid;
    column-gap: 30px;
    grid-template-columns: auto auto auto auto auto;
}
.slidesGrid > div {
    width: 100%;
    border-radius: calc(15%);
    background-size: cover;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
    transition: 1s;
    cursor: pointer;
}
.slidesGrid > #slideA {
    background-image: url("../IMAGES/slideA.png");
}
.slidesGrid > #slideB {
    background-image: url("../IMAGES/slideB.png");
}
.slidesGrid > #slideC {
    background-image: url("../IMAGES/slideC.png");
}
.slidesGrid > #slideD {
    background-image: url("../IMAGES/slideD.png");
}
.slidesGrid > #slideE {
    background-image: url("../IMAGES/slideE.png");
}
.slidesGrid > [style^='--aspect-ratio']::before {
    content: "";
    display: inline-block;
    width: 0px;
    height: 0;
    padding-bottom: calc(100% / (var(--aspect-ratio)));
}

.textMobile {
    display: none;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0, 0, 0, 0));
    border-top: 1px solid white;
    margin-top: calc(10%);
    padding-bottom: 100px;
}

#imagePopup {
    z-index: 500; 
    width: 100%; 
    height: 100%; 
    position: fixed; 
    background: rgba(0,0,0,0.5); 
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
    top: 0;
    left: 0;
    display: none;
    cursor: pointer;
}

@media screen and (min-width: 1100px) {.gridLeft {overflow: hidden;}}

@media (min-aspect-ratio: 1.75/1) {
    .grid {
        width: 85%;
        margin-left: 7.5%;
    }
}

@media (max-aspect-ratio: 1/0.75) {
    .grid {
        grid-template-areas: 'left left left right right right right'
        'footer footer footer footer footer footer footer';
        margin-bottom: 0;
    }
    .gridLeft {aspect-ratio: 0.75/1;}
}

@media (max-aspect-ratio: 1/1.25) {
    .grid {display: block;}
    .slidesGrid {
        margin-top: calc(-20%);
    }
    .slidesGrid > div {border: 1px solid white}
    .dropdown {
        margin-top: calc(3%);
        margin-left: 3%;
    }
    .dropbtn {border-radius: 5px 0 0 0;}
    .gridLeft {
        aspect-ratio: inherit;
        overflow: visible;
    }
    .textLarge {display: none;}
    .mainImg {margin-top: calc(-3% - 44.5px);}
    .textMobile {display: block;}
}