body {
    font-family: "Rubik", sans-serif;
    font-size: 17px;
    font-weight: 300;
}

/* Carousel */

.carousel {
    margin: 0 auto 60px auto;
}

.carousel-inner {
    max-height: 1000px;
}

.carousel.carousel-thumbs-top {
  padding-bottom: 60px;
  padding-top: 30px;
}

.carousel.carousel-thumbs-top .carousel-indicators {
    bottom: 0;
    top: auto;
    margin: 0;
}

.carousel .carousel-indicators button {
  width: 82px !important;
  height: 82px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  box-sizing: initial;
  flex: 0 0 auto;
  border: none;
  background: none;
  scroll-snap-align: start;
  margin: 0 2px;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" stroke="%23000000" fill="%23000000" width="15px" height="15px" viewBox="0 0 10.04 10.04"><circle cx="5.02" cy="5.02" r="4.52"/></svg>') 10 10, auto;
}

.carousel .carousel-indicators button:hover {
    opacity: 1;
}

.carousel .carousel-indicators button img {
    height: 100%;
}

.carousel-control-next:hover,
.carousel-control-prev:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" stroke="%23000000" fill="%23000000" width="15px" height="15px" viewBox="0 0 10.04 10.04"><circle cx="5.02" cy="5.02" r="4.52"/></svg>') 10 10, auto;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    background: none;
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

.carousel-inner:hover .carousel-control-next-icon,
.carousel-inner:hover .carousel-control-prev-icon {
    opacity: 1
}

.carousel-control-next-icon img {
    transform: rotate(180deg);
}

.carousel-control-next,
.carousel-control-prev {
    width: auto;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev {
    left: 30px
}
.carousel-indicators.slider {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 10px 0px;
    margin: 0;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: start;
    cursor: grab;
}
.carousel-indicators.slider:active {
    cursor: grabbing;
}
.carousel-indicators.slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.carousel-indicators.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.carousel-indicators.slider .active img {
    opacity: 1;
}
.carousel-indicators.slider button {
    flex: 0 0 auto;
    width: 50px !important;
    height: 50px;
    padding: 0;
    border: none;
    background: none;
    scroll-snap-align: start;
    margin: 0 2px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 48px;
}

/* Project description */
.project-description {
    margin-bottom: 84px;
}
.site-content > .project-description {
 min-height: auto;
}

@media (min-width: 768px) {
    .thumbs-nav {
        position: absolute;
        bottom: 0;
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        transform: translate(-50%, 0);
        left: 50%;
    }
    /* wrapper so scrollom */
    .slider-wrapper {
        overflow-x: hidden;
        white-space: nowrap;
        scroll-behavior: smooth;
        flex: 1;
    }

    /* indikátory */
    .carousel-indicators {
        position: relative;
        display: flex;
        gap: 10px;
        margin: 0;
        width: max-content;
    }

    /* šípky */
    .thumb-arrow {
        color: #fff;
        border: none;
        width: 17px;
        height: 100%;
        cursor: inherit !important;
        font-size: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        opacity: 0;
        transition: opacity .4s ease-in-out;
        position: absolute;
        z-index: 10;
    }

    .thumbs-nav:hover .thumb-arrow {
        opacity: 1;
    }

    .thumb-arrow img {
        height: 25px;
    }

    .thumb-arrow.prev {
        left: 0;
    }

    .thumb-arrow.next {
        transform: rotate(180deg);
        right: 0;
    }

    .thumb-arrow:disabled {
        opacity: 0.3;
        cursor: default;
    }

    /* thumbs */
    .carousel-indicators button {
        flex: 0 0 auto;
        width: 100px;
        opacity: 0.5;
    }

    .carousel-indicators button.active {
        opacity: 1;
    }

    .carousel-indicators img {
        width: 100%;
        display: block;
    }
}

@media (max-width: 768px) {
    .thumbs-nav .thumb-arrow.prev,
    .thumbs-nav .thumb-arrow.next {
        display: none;
    }

    .thumbs-nav {
        position: absolute;
        bottom: 0;
        overflow: hidden;
        max-width: 100%;
    }
}