.body-no-scroll {
    overflow: hidden;
}

.photo-contest-head {
    margin-bottom: 2rem;
}

.photo-contest__map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.photo-contest__map {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.photo-contest-map__svg {
    width: 100%;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.photo-contest__map:active {
    cursor: grabbing;
}

.photo-contest__map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.map-control-btn:hover {
    background: #f0f0f0;
}

.photo-contest-map__item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-contest-map__cluster {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-contest-map__cluster:hover rect {
    fill: #00E5FF;
}

.photo-contest-map__svg{
    width:100%;
    display:block
}

.photo-contest-map__federal-district{
    position:relative
}

.photo-contest-map__federal-district:hover .photo-contest-map__svg-group .photo-contest-map__svg-subject{
    fill:#4d62aa
}

.photo-contest-map__federal-district:after{
    content:attr(data-district);
    position:absolute;
    top:50%;
    left:50%;
    font-size:20px;
    color:#fff
}

.photo-contest-map__federal-district .photo-contest-map__svg-group:focus .photo-contest-map__svg-subject,
.photo-contest-map__federal-district .photo-contest-map__svg-group:hover .photo-contest-map__svg-subject{
    fill:#191970;
    stroke:#2f80ed;
    stroke-width:3px
}

.photo-contest-map__svg-group:focus .photo-contest-map__svg-subject,
.photo-contest-map__svg-group:hover .photo-contest-map__svg-subject,
.regions-map__svg-group:hover .test{
    fill:#5b6fb0!important;
    stroke:#00e5ff!important;
    stroke-width:3px
}

.photo-contest-map__svg-subject{
    transition:all .5s ease-in;
    fill:var(--accent)
}

.photo-contest__map-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.photo-contest__popup-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 3%;
}

.map-popup__header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3%;
}

.map-popup__counter {
    display: flex;
    color: white;
}

.map-popup__counter-current,
.map-popup__counter-divider,
.map-popup__counter-total {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}

.map-popup__controls {
    display: flex;
    max-height: 32px;
}

.map-popup__close-button {
    margin-left: .5rem;
}

.map-popup__content-container {
    display: flex;
    flex: 1;
    min-height: 0;
}

.map-popup__left-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1%;
}

.map-popup__right-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1%;
}

.map-popup__content {
    display: flex;
    width: 100%;
    background-color: white;
    border-radius: 16px;
}

@media (min-width: 901px) {
    .map-popup__content {
        flex-direction: row;
    }

    .map-popup__image-container {
        flex: 1;
        padding: 4%;
        align-content: center;
    }

    .map-popup__info-container {
        width: 34%;
        padding-top: 2%;
        padding-right: 2%;
        padding-bottom: 2%;
        overflow-y: auto;
    }
}

@media (max-width: 900px) {
    .map-popup__content {
        flex-direction: column;
    }

    .map-popup__image-container {
        width: 100%;
    }

    .map-popup__info-container {
        width: 100%;
        padding: 2%;
        overflow-y: auto;
    }
}

.map-popup__image {
    border-radius: 16px;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.map-popup__image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-popup__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.map-popup__about {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.map-popup__description {
    font-size: 14px;
    font-weight: 400;
}

.map-popup__list-button svg:hover,
.map-popup__close-button svg:hover,
.map-popup__left-arrow svg:hover,
.map-popup__right-arrow svg:hover {
    cursor: pointer;
    fill: #FFFFFF4D;
}

.photo-contest__map-popup.no-cluster .map-popup__items-list,
.photo-contest__map-popup.no-cluster .map-popup__counter,
.photo-contest__map-popup.no-cluster .map-popup__list-button,
.photo-contest__map-popup.no-cluster .map-popup__left-arrow svg,
.photo-contest__map-popup.no-cluster .map-popup__right-arrow svg {
    display: none !important;
}

.photo-contest__map-popup.no-cluster .map-popup__header-row {
    justify-content: end;
}

.photo-contest__map-popup.no-cluster .map-popup__left-arrow {
    margin-right: calc(1% + 32px);
}

.photo-contest__map-popup.no-cluster .map-popup__right-arrow {
    margin-left: calc(1% + 32px);
}

.map-popup__items-list {
    width: 10%;
    height: 100%;
    background-color: white;
    padding: 1%;
    overflow-y: auto;
}

.map-popup__item {
    max-height: 82px;
    height: 100%;
    margin-bottom: 6%;
}

.map-popup__item:hover {
    cursor: pointer;
    filter: brightness(1.1) saturate(1.05);
}

.map-popup__item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border: 1px solid #ff4500;
    box-sizing: border-box;
    border-radius: 4px;
}

.achieve-itm:hover {
    cursor: pointer;
}

.achieve-itm__desc {
    font-size:var(--fs-h4);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}