@charset "UTF-8"

/* ===============================
   ギャラリー
   =============================== */
/* ギャラリーのコンテナ */
.img {}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* 列のサイズを調整 */
    gap: 10px; /* 画像間の隙間 */
}

/* ギャラリーのアイテム */
.gallery-item {
    cursor: pointer;
    position: relative;
    width: 100%;
    padding-top: 100%; /* 高さを幅と同じに設定 */
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をセルにフィットさせる */
    transition: all 0.3s ease;
 }

.gallery-item:hover {
    box-shadow: 5px 5px 12px #bfbfbf;
}
.gallery-item:hover img {
    transform: scale(1.02);
}


/* ===============================
   ギャラリーのタグ
   =============================== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* ボタンを中央に配置 */
    margin: 20px;
}

.tags button {
    background-color: #c9c9c9;
    font-family: inherit;
    color: black;
    border: none; /* 枠線を消す */
    border-radius: 25px;
    padding: 5px 12px;
    cursor: pointer; /* カーソルをポインターに変更 */
    transition: all 0.3s;
}

.tags button:hover {
    background-color: #47e8dd;
    -webkit-box-shadow: 0 0 12px #5aedd9;
    box-shadow: 0 0 12px #5aedd9;
    transform: translateY(-2px);
}

.tags button:active {
    background-color: #5ee5c3;
    -webkit-box-shadow: 0 0 12px #5aedd9;
    box-shadow: 0 0 12px #5aedd9;
    transform: translateY(0);
}

.tags button.selected {
    background-color: #39dbd0;
    -webkit-box-shadow: 0 0 12px #5aedd9;
    box-shadow: 0 0 12px #5aedd9;
}

/* ===============================
   モーダル
   =============================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-img-container {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    transition: 0.4s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===============================
   モーダル内タグ
   =============================== */
.modal-tags {
    text-align: center;
    margin-top: 20px;
}

.modal-tags a {
    display: inline-block;
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.modal-tags a:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
}

.modal-tags a::before {
	font-family: "Font Awesome 5 Free";
    content: '\23';
    font-weight: 600;
    font-size: 70%;
    padding: 0 3px 0 0;
}