@import url('global.css');
@import url('navbar.css');
@import url('animations.css');

.image-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55%;
    height: 90%;
    justify-content: flex-start;
    margin-right: 2%;
}
.image-carousel .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60%;
    flex-direction: row;
}
.image-carousel .container .arrow-left, .image-carousel .container .arrow-right {
    font-size: 6lvw;
    color: var(--dark);
    cursor: pointer;
    user-select: none;
}
.image-carousel .container .carousel {
    width: 70%;
    height: 100%;
    margin-left: 4%;
    margin-right: 4%;
    position: relative;
    overflow: hidden;
}
.image-carousel .container .carousel img {
    width: 100%;
    height: 100%;
    position: absolute;
    user-select: none;
}
.image-carousel .images {
    display: flex;
    position: relative;
    height: 25%;
    margin-top: 2%;
    width: 100%;
}
.image-carousel .gallery-button {
    display: flex;
    position: relative;
    height: 10%;
    margin-top: 2%;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(to bottom right, var(--light-beige), var(--dark-beige));
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
    font-size: 2lvh;
}
.image-carousel .images .row1, .image-carousel .images .row2 {
    display: flex;
    justify-content: space-between;
    position: absolute;
    height: 100%;
    width: 100%;
}
.image-carousel .images .row2 {
    pointer-events: none;
}
.image-carousel .images .row1 img {
    pointer-events: auto;
}
.image-carousel .images img {
    width: calc(20% - 4%);
    height: auto;
    user-select: none;
    margin: 0 2%;
    cursor: pointer;
}
.description {
    font-size: 1.1lvw;
    background: linear-gradient(to bottom right, var(--light-beige), var(--dark-beige));
}

.image-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 0.7%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-display img {
    height: 75vh;
    max-width: 75vw;
}
.close {
    user-select: none;
    font-size: 3lvw;
    color: var(--dark);
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 2.5%;
    width: 10%;
    text-align: end;
}
.image-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: 80vh;
    overflow-y: auto;
    padding: 1%;
    background: linear-gradient(to bottom right, var(--light-beige), var(--dark-beige));
}
.image-selector img {
    width: 15%;
    height: auto;
    aspect-ratio: 1;
    margin: 1%;
    cursor: pointer;
    user-select: none;
}

@media all and (max-aspect-ratio: 1.75) {
    .description {
        font-size: 1.45lvw;
    }
}
@media all and (max-aspect-ratio: 1.5) {
    .description {
        font-size: 1.6lvw;
    }
}
@media all and (max-aspect-ratio: 1.25) {
    .description {
        font-size: 1.7lvw;
    }
}
@media all and (max-aspect-ratio: 1.1) {
    .image-carousel .container .arrow-left, .image-carousel .container .arrow-right {
        font-size: 16lvw;
    }

    .close {
        font-size: 10lvw;
        top: 0;
        right: 5%;
    }
    .image-selector {
        width: 100%;
        height: 90vh;
    }
    .image-selector img {
        width: 30%;
    }

    .section .main {
        flex-direction: column;
    }
    #lower-section .main {
        flex-direction: column;
        justify-content: center;
    }
    .description {
        font-size: 1.35lvh;
        margin: 2%;
        width: 90%;
        height: 55%;
    }
    .image-carousel {
        width: 90%;
        height: 40%;
        margin: 2%;
    }
}