﻿.section-politic {
    padding-top: 60px;
}

.unknown-person-img {
    top: 240px;
    left: 370px;
    margin: 0;
    font-size: 16px;
}

.erdogan-img {
    top: 36px;
    left: 21px;
    transform: rotate(15deg);
}

.makron-img {
    top: 250px;
    left: 21px;
    transform: rotate(-15deg);
}

.merc-img {
    left: 250px;
    top: 26px;
    transform: rotate(-10deg);
}

.netanyahu-img {
    top: 26px;
    left: 500px;
    transform: rotate(10deg);
}

.trump-img {
    top: 37px;
    right: 19px;
    transform: rotate(-15deg);
}

.si-img {
    top: 250px;
    right: 19px;
    transform: rotate(15deg);
}

.section__text {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.section__text:not(:last-child) {
    margin-bottom: 40px;
}

.politic-photos {
    position: relative;
    height: 487px;
    width: 1057px;
}

.politic-photo {
    position: absolute;
    width: 300px;
}

.photo-title {
    text-align: center;
}

.politic-photos-container {
    display: flex;
    justify-content: center;
}

.photo {
    margin: 0;
    width: 300px;
    transition: width 0.3s ease-in-out;
    cursor: pointer;
}

    .photo:hover {
        width: 312px;
    }

.result-photos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
}

.sovet-union-photos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
}

.figcaption {
    font-size: 16px;
    text-align: center;
}

.section:not(:last-child) {
    margin-bottom: 40px;
}

.section:last-child {
    padding-bottom: 40px;
}

.img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 312px;
    height: 208px;
}

.shown-photo {
    width: 600px;
    height: 400px;
    background-image: src("");
    z-index: 1100;
}

.modal {
    position: fixed;
    top: 58px;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: rgba(127,127,159,0.4);
    z-index: 1100;
}

.big-photo-title {
    box-sizing: border-box;
    width: 600px;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    background-color: white;
}

@media screen and (max-width: 768px) {
    .unknown-person-img {
        position: static;
        font-size: 10px;
    }

    .erdogan-img {
        position: static;
        transform: rotate(0);
    }

    .makron-img {
        position: static;
        transform: rotate(0);
    }

    .merc-img {
        position: static;
        transform: rotate(0);
    }

    .netanyahu-img {
        position: static;
        transform: rotate(0);
    }

    .trump-img {
        position: static;
        transform: rotate(0);
    }

    .si-img {
        position: static;
        transform: rotate(0);
    }

    .politic-photos {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        row-gap: 10px;
        height: auto;
        width: 100%;
    }

    .shown-photo {
        width: 100vw;
        /*height: 400px;*/
        background-image: src("");
        z-index: 1100;
    }

    .big-photo-title {
        box-sizing: border-box;
        width: 100%;
        padding: 4px;
        font-size: 12px;
        text-align: center;
        background-color: white;
    }
}