﻿* {
    box-sizing: border-box
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    margin: auto;
}

.media-gallery-container {
    aspect-ratio: 16 / 9;
}

.media-container {
    padding: 0.5rem 0 0.5rem 0;
}

.project-iframe {
    width: 100%;
    height: 100%;
}

.media-toggle-group {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.media-toggle-item {
    font-size: var(--big-font-size);
    font-weight: var(--font-semi-bold);
}

/* Hide the images by default */
.slideshow__item {
    display: none;
    min-width: 540px;
    min-height: 540px;
    max-width: 960px;
    max-height: 540px;
    text-align: center;
}

    .slideshow__item iframe {
        width: 100%;
        height: 100%;
    }

    .slideshow__item img {
        height: 100%;
    }

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    /* On hover, add a black background color with a little bit see-through */
    .prev:hover, .next:hover {
        background-color: var(--first-color);
    }

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.dots-container {
    column-gap: 2px;
    justify-content: center;
    display: flex;
    align-items: center;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #686868;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

    .active, .dot:hover {
        background-color: #cbcbcb;
        height: 18px;
        width: 18px;
    }

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 0.75s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}
