.inverted {
    background-color: black;
    color: white;
}

.inverted .horizontal-separator {
    border-color: white;
}

.inverted .gallery .row_item {
    border-color: black;
    box-shadow: 0 0 7px white;
}

.inverted .gallery .row_item:hover {
    box-shadow: 0 0 12px 4px white;
}

.inverted .switcher {
    border-color: white;
}

.inverted .switcher:after {
    border-color: white;
    background-color: white;
}

.inverted img {
    filter: invert(1);
}

body {
    margin: 0 !important;
    transition: 0.5s cubic-bezier(0, 0, 0.2, 1);
}

figure {
    margin: 0;
}

header {
    margin-bottom: 40px;
}

.visually-hidden {
    visibility: hidden;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

header .logo {
    margin: 15px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

header .logo .logo__text {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 80px;
    margin-left: auto;
    margin-right: auto;
}

.mode_switcher {
    display: flex;
    align-items: center;
    /*margin-top: auto;*/
}

.switcher {
    width: 50px;
    height: 25px;
    border: 2px solid black;
    border-radius: 25px;
    cursor: pointer;

    margin-left: 15px;
}

.switcher:after {
    content: "";
    position: relative;
    width: 23px;
    height: 23px;
    top: 1px;
    background-color: black;
    float: left;
    border-radius: 25px;
    left: 2px;
}

.mode_switcher .text_dark {
    display: none;
}

.mode_switcher .text_light {
    display: block;
}

.mode_switcher.switched_on .text_dark {
    display: block;
}

.mode_switcher.switched_on .text_light {
    display: none;
}

.switched_on .switcher:after {
    float: right;
    right: 2px;
    left: unset;
}

.horizontal-separator {
    border-width: 1px;
    border-color: black;
    margin: 0 10px 0;
}

.layout-positioner {
    margin-left: auto;
    margin-right: auto;
}

.gallery {
    width: 100%;
}

.gallery .layout-positioner {
    max-width: 1140px;
    padding: 0 20px 0;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    row-gap: 40px;
    column-gap: 40px;
}

.gallery .row_item {
    border: 1px solid white;
    border-radius: 2px;
    box-shadow: 3px 2px 10px black;
    transition: box-shadow 0.2s ease-out;

    display: flex;
}

.gallery .row_item:hover {
    box-shadow: 0 0 12px 4px black;
}

.row_item_vertical {
    grid-column: span 2 / span 2;
}

.row_item_horizontal {
    grid-column: span 3 / span 3;
}

.gallery .row_item a {
    margin: auto;
}

.gallery .row_item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.null {
    clear: both;
    margin: 0;
}

footer {
    height: 20px;
    width: auto;

    margin-top: 20px;
}

@media (max-device-width: 768px) {
    header .logo {
        align-items: center;
    }

    .mode_switcher_text {
        font-size: 25px;
    }

    .switcher {
        width: 100px;
        height: 50px;
        border-radius: 50px;
    }

    .switcher:after {
        width: 36px;
        height: 36px;
        top: 7px;
        left: 5px;
    }

    .switched_on .switcher:after {
        right: 5px;
    }

}
