.photo-page {
    padding-top: 100px;
    width: 100%;
    margin: 0 auto;
}

.photo-page .container {
    margin: 0 auto;
}

.info__title {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .info__title_text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 64px;
    color: #fff;
  }
  
  .info__title_btn {
    border: 1px solid var(--component-colors-components-buttons-primary-button-primary-border);
    border-radius: 8px;
    padding: 10px 20px;
    width: fit-content;
    height: 44px;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    background: var(--component-colors-components-buttons-primary-button-primary-bg);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
  }
  
  .info__title_btn_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
  }
  
  .info__title_btn_text {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--component-colors-components-buttons-primary-button-primary-fg);
  }

.photo_cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
}

.photo_card {
    width: calc(100% / 4 - (60px/4));
    cursor: pointer;
    transition: all 200ms;
}
.photo_card:hover {
    opacity: 0.9;
}

.photo_card_main {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.photo_card_main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo_card_main_number_wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border-radius: 12px;
    padding: 7px 10px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.photo_card_main_number_icon {
    width: 20px;
    height: 20px;
}

.photo_card_title {
    margin-top: 12px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
}

.photo_list_head {
    display: flex;
    align-items: center;
    gap: 20px;
    row-gap: 5px;
    flex-wrap: wrap;
}

.photo_list_head_back {
    cursor: pointer;
    transition: all 200ms;
}

.photo_list_head_back:hover {
    opacity: 0.8;
}

.photo_list_head_title {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 32px;
    color: #fff;
}

.photo_list_head_number_wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-600);
    border-radius: 12px;
    padding: 7px 10px;
}

.photo_list_head_number_icon {
    width: 20px;
    height: 20px;
}

.photo_list_head_number_text {
    color: #fff;
}

.photo_list_content {
    width: 100%;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo_list_item {
    width: calc(100% / 4 - (30px/4));
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: all 200ms;
    position: relative;
}
.photo_list_item_icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 200ms;
}
.photo_list_item:hover {
    opacity: 0.9;
}
.photo_list_item:hover .photo_list_item_icon {
    opacity: 1;
}

.photo_list_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0000006c;
    padding: 16px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 300ms;
}

.view_modal.active {
    opacity: 1;
    pointer-events: all;
}

.view_modal_content_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view_modal_content {
    max-width: 100%;
    width: fit-content;
    max-height: 100%;
    height: auto;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.view_modal_close {
    position: absolute;
    top: -20px;
    right: -50px;
    cursor: pointer;
    transition: all 200ms;
}

.view_modal_close:hover {
    opacity: 0.8;
}

.view_modal_content img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: 10px;
    overflow: hidden;
}

.view_modal_arrow {
    width: 50px;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms;
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    border-radius: 50%;
}
.view_modal_arrow:last-child {
    left: auto;
    right: 30px;
    transform: translateY(-50%) rotate(180deg);
}

.view_modal_arrow:hover {
    opacity: 0.95;
}

@media screen and (max-width: 1080px) {
    .photo-page .container {
        padding: 0 16px
    }
    .photo-page {
        padding-top: 20px;
    }
}

@media screen and (max-width: 980px) {
    .photo_cards {
        gap: 10px;
        row-gap: 20px;
    }
    .photo_card {
        width: calc(100% / 3 - (20px/3));
    }
    .photo_list {
        gap: 10px;
    }
    .photo_list_item {
        width: calc(100% / 3 - (20px/3));
    }
}

@media screen and (max-width: 768px) {
    .photo_cards {
        gap: 10px;
        row-gap: 20px;
    }
    .photo_card {
        width: calc(100% / 2 - 5px);
    }
    .photo_list_item {
        width: calc(100% / 2 - 5px);
    }
    .info__title_text {
        font-size: 36px;
    }
    .photo-page {
        padding-top: 5px;
    }
}

@media screen and (max-width: 540px) {
    .photo_card {
        width: 100%;
    }
    .photo_card_title {
        margin-top: 5px;
    }
    .photo_list_head_title {
        font-size: 24px;
    }
    .photo_list_head {
        row-gap: 10px;
    }
    /* .photo_list_item {
        width: 100%
    } */
    .view_modal_close {
        right: 10px;
        top: -40px;
    }
    .view_modal_content {
        padding: 10px;
    }
    .view_modal {
        padding: 10px;
    }
    .view_modal_arrow {
        left: 15px;
        width: 40px;
        height: 40px;
    }
    .view_modal_arrow:last-child {
        right: 15px;
    }
    .view_modal_arrow svg {
        width: 20px;
        height: 20px;
    }
}