
.page-wrapper {
    max-width: 90%;
    margin: 0 auto;
}
.page-wrapper > section {
    margin-bottom: 15rem;
}
@media only screen and (min-width: 768px) {
    .page-wrapper {
        max-width: 80%;
    }
}
.two-collumn-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.content-section--center {
    align-items: center;
}
@media only screen and (min-width: 1150px) {
    .two-collumn-section {
        flex-direction: row;
        justify-content: space-between;
    }
    .two-collumn-section > div {
        width: 40%;
    }
    .two-collumn-section__box--main {
        width: 75% !important;
    }
}
.page-header {
    height: 900px;
    margin-bottom: 6em;
    position: relative;
}
.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}
.gallery__item {
    transition: ease-in-out 0.2s;
}
.gallery__item--full {
    max-width: 100%;
}
.gallery__item--third {
    max-width: calc(100%/3 - 2rem);
}
.gallery__item:hover {
    transform: scale(1.015);
    transition: ease-in-out 0.2s;
}
.timeline-wrapper {
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.timeline {
    width: 100%;
    height: 284px;
    background-image: url("../../img/casova-osa-cxi.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.text-box--strict {
    max-width: 40vw;
    margin: 0 auto;
}
.collumn-section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.services {
    padding: 8rem 0 0 0;
}
.service-card {
    max-width: 25em;
}
.departments {
    gap: 1em;
    margin-top: 10rem;
}
.department-card {
    position: relative;
    max-width: calc(100%/5);
    overflow: hidden;
}
.department-card:hover::before {
    content: "";
    width: 800px;
    height: 800px;
    position: absolute;
    background-color: var(--cxi-red);
    opacity: 0.85;
}
.department-card__description {
    display: none;
}
.department-card .department-card__description {
    position: absolute;
    bottom: 50%;
    left: 50%;
    min-width: 80%;
    transform: translate(-50%, 50%);
    color: var(--light);
}
.department-card:hover .department-card__description {
    display: block;
    transition: ease-in-out 1s;
}
.virttour {
    margin-top: 10rem;
}
.virttour .text-box {
    padding-right: 10%;
}
.future {
    margin-top: 15rem;
    overflow: hidden;
}
.topstars {
    margin-top: 15rem;
}
.topstars-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}
.topstars__item {
    max-width: 45%;
    padding: 6rem 0;
}
.topstars__image {
    height: 150px;
    margin-bottom: 2.5rem;
}
.team {
    margin-top: 10em;
}
.team__image {
    margin-top: 3rem;
}
.page-footer {
    padding: 2rem 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.page-footer__text {
    display: flex;
    flex-direction: row;
    gap: 6rem;
}
.page-footer__btn {
    display: flex;
    flex-direction: column;
    padding: 1em;
}
.page-footer__logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
}
.page-footer__logo a img {
    max-height: 3.5em;
}

/* Screens max-width: 1400px */
@media only screen and (max-width: 1400px) {
    .department-card:hover .department-card__description {
        font-size: 0.8rem;
    }
    .department-card__description .btn {
        padding: 0.5rem 1rem;
    }
}

/* Screens max-width: 1200px */
@media only screen and (max-width: 1200px) {
    .page-footer {
        flex-direction: column;
        gap: 3.25rem;
    }
    .page-footer__logo {
        justify-content: center;
    }
    .departments {
        flex-wrap: wrap;
        justify-content: center;
    }
    .department-card {
        max-width: calc(100%/3);
    }

}
/* Screens max-width: 1000px */
@media only screen and (max-width: 1000px) {
    .present .text-box--strict {
        max-width: 100%;
    }
    .collumn-section {
        flex-direction: column;
    }
    .service-card {
        max-width: 100%;
    }
    .services {
        gap: 5em;
    }
    .departments {
        align-items: center;
    }
    .department-card {
        max-width: 100%;
    }
    .timeline-wrapper {
        padding: 5rem 0;
    }
    .timeline {
        width: 100%;
        height: 800px;
        background-image: url("../../img/casova-osa-vertikalni-cxi.svg");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Screens max-width: 800px */
@media only screen and (max-width: 800px) {
    .topstars__item {
        max-width: 100%;
    }
}

/* Screens max-width: 768px */
@media (max-width: 768px) {
    #intro {
        display: none;
    }
    .page-header {
        height: 120px;
        margin-bottom: 3em;
    }
    .main-heading {
        margin-bottom: 0 !important;
    }
    .timeline-wrapper {
        min-height: auto;
    }
    .team {
        margin-top: 5rem;
    }
    .team .text-box {
        text-align: left;
    }
    .page-footer__text {
        flex-direction: column;
        gap: 1rem;
    }
    .page-footer__btn {
        padding: 0;
    }
    .page-footer__btn a {
        text-align: center;
    }
}


