.topics-popup {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    box-sizing: border-box;
}

.topics-popup.is-open {
    display: block;
}

.topics-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.topics-popup__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1250px;
    margin: 20px auto;
    background: #f8f6f0;
    box-sizing: border-box;
    text-align: center;
    background: url(../img/celebrationBg.jpg);
}

.topics-popup__close {
    position: absolute;
        top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background: #c5a64b;
    color: #fff;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
}

.topics-popup__title {
    margin: 0;
    padding-bottom: 24px;
    font-size: 38px;
    font-weight: 700;
    color: #735d21;
    font-weight: 900;
    background: url(../img/frame01-top.png);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 65px;
    margin-bottom: 32px;
}

.topics-popup__ornament {
    width: 80px;
    height: 16px;
    margin: 0 auto 24px;
}

.topics-popup__body {
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.topics-popup__body p {
    margin: 0;
    color: #735d21;
    font-weight: 400;
    font-size: 18px;
    margin-bottom:40px;
    line-height: 180%;
}

.topics-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 19px 24px 21px 24px;
    background: #c5a64b;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.topics-popup__btn::before,
.topics-popup__btn::after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
}

.topics-popup__btn::before {
  width: 7px;
  height: 7px;
  right: 12px;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
  transition: all .3s;
}

body.is-topics-popup-open,
body.is-comment-popup-open {
    overflow: hidden;
}

.comment-popup {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    box-sizing: border-box;
}

.comment-popup.is-open {
    display: block;
}

.comment-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.comment-popup__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width:1250px;
    margin: 20px auto;
    box-sizing: border-box;
    background: #fff;
    padding: 13px;
}

.comment-popup__frame {
    overflow: hidden;
}

.comment-popup__viewport {
    overflow: hidden;
}

.comment-popup__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.comment-popup__slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    text-align: center;
}

.comment-popup__title {
    margin: 0 0 16px;
    padding-bottom: 20px;
    font-size: 34px;
    font-weight: 700;
    color: #3290cd;
    border-bottom: 2px solid #3290cd;
}

.comment-popup__body {
    max-height: 50vh;
    overflow-y: auto;
    text-align: left;
}

.comment-popup__body p {
    margin: 0;
    color: #333;
    font-size: 19px;
    line-height: 1.8;
    font-weight: 400;
}

.comment-popup__close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 3;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background: #e45889;
    color: #fff;
    font-size:50px;
    line-height: 1;
    cursor: pointer;
}

.comment-popup__prev,
.comment-popup__next {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e45889;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.comment-popup__prev {
    left: 32px;
}

.comment-popup__next {
    right: 32px;
}

.comment-popup__prev:disabled,
.comment-popup__next:disabled {
    opacity: 0.35;
    cursor: default;
}

.frame2 {
    border: solid #ccc 20px;
    border-image-source: url("../img/frame01.png");
    border-image-slice: 15%;
    border-image-width: 90px;
    border-image-outset: 0px;
    border-image-repeat: repeat;
    padding: 40px;
}

.frame3 {
    border: solid #3290cd 5px;
    padding: 48px 125px 40px;
}

.comment-ribon01 {
    position: absolute;
    left: -2%;
    top: -4%;
    width: 10%;
}
    .comment-ribon02 {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10%;
}

.comment-cracker1 {
    position: absolute;
    left: 25px;
    bottom: 24px;
    width: 6%;
}

.comment-cracker2 {
    position: absolute;
    right: 25px;
    bottom: 24px;
    width: 6%;
}

@media screen and (max-width: 768px) {
    
    .comment-ribon01 {
    left: -6%;
        top: -3%;
        width: 23%;
}
    .comment-ribon02 {
    right: -1px;
    bottom: -1px;
    width: 25%;
}

.comment-cracker1 {
    left: 25px;
    bottom: 24px;
    width: 15%;
}

.comment-cracker2 {
    right: 25px;
    bottom: 24px;
    width: 15%;
}
    
    
    .comment-popup__panel {
        max-width: 92%;
    }

    .comment-popup__prev {
        left: -18px;
    }

    .comment-popup__next {
        right: -18px;
    }

    .comment-popup__title {
        font-size: 22px;
    }

    .comment-popup__body p {
        font-size: 14px;
    }

    .frame2 {
    border: solid #ccc 17px;
    border-image-source: url(../img/frame01.png);
    border-image-slice: 20%;
    border-image-width: 95px;
    border-image-outset: 0px;
    border-image-repeat: repeat;
    background-size: 65px;
}
    
    .frame3 {
    border: solid #3290cd 5px;
                padding: 14% 8% 20% 8%;
}
    
    .comment-popup__body {
    padding: 0 2%;
}

    .topics-popup__title {
        font-size: 22px;
    }
    
    .topics-popup__body p {
    font-size: 15px;
}
    
    .topics-popup__btn {
    font-size: 17px;
}

    .topics-popup__body {
        font-size: 13px;
    }
}
