.insta_item {
    display: inline-block;
    margin-left: 1px;
    margin-right: 1px;
    width: 120px;
    height: auto;
}

.insta_item img {
    max-width: 100%;
    height: auto;
}

.insta_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.insta_overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.insta_overlay-content img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 5px solid white;
    border-radius: 5px;
}

.insta_caption {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.insta_link {
    display: block;
    font-size: 14px;
    color: #fff;
    text-align: center;
}

/* .insta_tile {
    display: inline-block;
    margin-left: 1px;
    margin-right: 1px;
    width: 60px;
    height: auto;
}

.insta_tile img {
    max-width: 100%;
    height: auto;
} */

/* .insta_tile_container {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }
  
  .insta_tile_slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  } */

/* .insta_tile {
    width: 23%;
    margin-bottom: 2%;
  }
  
  .insta_tile img {
    max-width: 100%;
  } */

#instagram_tile-feed {
    width: 100%; /* 追加 */
    max-width: 960px; /* 追加 */
    height: auto;
}

.insta_tiles {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    /* 8列 */
    grid-template-rows: repeat(8, 1fr);
    /* 8行 */
    grid-gap: 3px;
    /* タイル間のスペース */
}

/* ブラウザの幅が 768px 以下の場合 */
@media only screen and (min-width: 769px) {
    .insta_tiles {
        grid-template-columns: repeat(8, 1fr);
        /* 8列 */
        grid-template-rows: repeat(8, 1fr);
        /* 8行 */
    }
}

/* ブラウザの幅が 768px 以下の場合 */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .insta_tiles {
        grid-template-columns: repeat(6, 1fr);
        /* 6列 */
        grid-template-rows: repeat(8, 1fr);
        /* 8行 */
    }
  }


/* ブラウザの幅が 480px 以下の場合 */
@media only screen and (max-width: 480px) {
    .insta_tiles {
        grid-template-columns: repeat(2, 1fr);
        /* 2列 */
        grid-template-rows: repeat(8, 1fr);
        /* 8行 */
    }
}

.insta_tile {
    margin-left: auto;
    margin-right: auto;
    /* display: inline-block;
    margin: 0 auto; */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.insta_tile_slider {
    text-align: center;
}
.insta_tile_slide {
    /* border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px; */
    display: flex; /* 追加 */
    justify-content: center; /* 追加 */
    /* text-align: center; */
}

.load-more-button {
    display: inline-block;
    margin: 0 auto;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 400; /*bold;*/
    color: #333;
    background-color: #fff;
    cursor: pointer;
}
.load-more-button:hover {
    background-color: #898989;
    color:#fff;
}