@font-face {
    font-family: "MetaBookC";
    src: url("/templates/instagram/fonts/Metabookc.otf");
}

.instagram {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.instagram__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 420px;
}

.instagram__item {
}

.popup-inst__slider {
    width: 100%;
    height: 100%;
}

.popup-inst__slider-wrap {
    position: relative;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
    scroll-snap-type: x mandatory;
}

.popup-inst__slider-line {
    display: flex;
    height: 100%;
    scroll-snap-type: x mandatory;
}

.instagram__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.popup-inst {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    backdrop-filter: blur(4px);
    background: #0000004D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 100;
}

.popup-inst__window {
    background-color: #fff;
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.popup-inst__left {
    position: relative;
    height: 650px;
}

.popup-inst__img-btn {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.popup-inst__img-btn:hover {
    opacity: 0.7;
}

.popup-inst__img-btn--l {
    left: 15px;
    background-image: url('/templates/instagram/img/chevron_left.svg');
}

.popup-inst__img-btn--r {
    background-image: url('/templates/instagram/img/chevron_right.svg');
    right: 15px;
}

.popup-inst__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-inst__img.active {

}

.popup-inst__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-inst__dots {
    display: flex;
    gap: 4px;
    position: absolute;
    z-index: 2;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.popup-inst__dot {
    width: 6px;
    height: 6px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-color: #989899;
    cursor: pointer;
}

.popup-inst__dot--active {
    background-color: #ffffff;
}

.popup-inst__right {
    padding: 40px 30px 20px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-inst__close {
    width: 20px;
    height: 20px;
    background-image: url('/templates/instagram/img/x.svg');
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.popup-inst__header {
    display: flex;
    align-items: center;
}

.popup-inst__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.popup-inst__logo-img {
    background-image: url('/templates/instagram/img/avatar.svg');
    width: 32px;
    height: 32px;
}

.popup-inst__logo-text {
    font-family: MetaBookC;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 18px;
    letter-spacing: 0%;
}

.popup-inst__date {
    font-family: MetaBookC;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 18px;
    letter-spacing: 0%;
    color: #A6A6A6;
    margin-left: auto;
}

.popup-inst__content {
    font-family: MetaBookC;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 18px;
    letter-spacing: 0%;
    color: #676767;
    white-space: pre-line;
    max-height: 450px;
    overflow-y: auto;
}

.popup-inst__link {
    font-family: MetaBookC;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 30px;
    letter-spacing: 0%;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 24px;
    background-color: #000000;
    color: #ffffff;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: none;
    flex-grow: 0;
    width: fit-content;
}

.popup-inst__footer {
    margin-top: auto;
    display: flex;
    justify-content: right;
}

.popup-inst__buttons {
    display: flex;
    gap: 5px;
}

.popup-inst__button {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.popup-inst__button-left {
    background-image: url('/templates/instagram/img/chevron_left.svg');
}

.popup-inst__button-right {
    background-image: url('/templates/instagram/img/chevron_right.svg');
}

@media (max-width: 750px) {
    .popup-inst__window {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .popup-inst__left {
        height: auto;
    }
}

@media (max-width: 980px) {
    .instagram__wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .instagram__wrap {
        grid-template-columns: 1fr;
    }
}