/* --- Album Container --- */
.album-container {
    max-width: 1000px;
    margin: 20px auto;
}

.event-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.album-item {
    position: relative; 
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    aspect-ratio: 4 / 3;
}

.album-item:hover {
    transform: scale(1.05);
}

.album-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.album-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 8px;
    margin: 0;
    box-sizing: border-box;
}

/* --- Modal Styles --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* ↓ この行の値を薄い緑色に変更しました */
    background-color: rgba(80, 110, 90, 0.9); /* 薄い緑色・90%不透明 */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80vw;
    max-height: 80vh;
}

.modal-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
}

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

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

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 10px;
    border-radius: 0 3px 3px 0;
}

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

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}