.doublegrid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    font-family: 'Noto Serif KR', serif;    
    font-size: 20px;
  }
  


.imgwrap {
    width: 100%; /*or whatever you choose*/
    margin: 0;
 }
 .imgwrap img{
    display: block;
    width: 100%;
    max-width: 496px; /*actual image width*/
    height: auto; /* maintain aspect ratio*/
    margin: auto; /*optional centering of image*/
 }

 .imgwrap a {
    display: block;
    width: 100%;
    max-width: 496px; /*actual image width*/
    height: auto; /* maintain aspect ratio*/
    margin: auto; /*optional centering of image*/
 }

.double-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

.double-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-right: 30px;
    position: relative;
}

.double-right a {
    text-decoration: none;
    color: black
}

.double-right a :visited {
    color: black
}

.prevnext {
    display: flex;
    width: 80px;
    height: 80px;
    font-size: 37px;
    font-weight: 900;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.prevnext a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    text-align: center;
    text-decoration: none;
}

.prevnext img {
    width: 60px;
    height: 60px;
}



.prevnext a:hover {
    color: white;
}

.prevnext a:visited {
    text-decoration: none;
    color: black;
}

.prevnext a:visited:hover {
    text-decoration: none;
    color: white;
}

#price a:hover {
    opacity: 0.7;
}

#price a:visited:hover {
    opacity: 0.7;
}

#nextissue {
    right: -105%;
}

#lastissue {
    left: -5%;
}

.doubleright a:hover{
    opacity: 0.5;
}


@media(max-width: 1023px) {
    
    .wrapper{
        margin-left: 30px;
        margin-right: 30px;
        position: relative;
    }

    footer {
        margin-left: 30px;
        margin-right: 30px;
    }

    .footer-wrapper {
        display: grid;
        max-width: 100%;
    }

    #headerimg {
        padding-left: 30px;
        padding-right: 30px;
    }
    .doublegrid {
        grid-template-columns: minmax(100px, 501.5px);
        grid-gap: 0;
        justify-content: center;
      }

    #nextissue {
        right: -10%;
    }
    #lastissue {
        left: -11.2%;
    }

    .prevnext {
        width: 60px;
    }

    .double-right {
        margin-right: 0;    
        margin-left: 0;
        margin-top: 20px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .double-left {
        margin-left: 0;
        justify-content: center;
        padding: 0;
    }

  .double-right.issue {
        align-items: center;
    }
  }
  

