
.year-menu {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 20px;
}

.year-menu-large {
    margin-bottom: 32px;
    gap: 40px;
}

.year-menu-large .year-thumb {
    width: 160px !important;
    height: auto !important;
    border-width: 3px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.18s;
}

.year-menu-large a {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 2.2em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    gap: 0.5em;
}

.year-menu-large .year-label {
    display: block;
    margin-top: 0.5em;
    font-size: 1.2em;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px #000a;
}

.year-menu-large a:hover .year-thumb {
    transform: scale(1.08);
    border-color: #f10908;
}

.year-menu button {
    padding: 6px 12px;
    background-color: #f10908;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 1em;
}

.year-menu button:hover {
    background-color: #c83c44;
}

.year-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    margin: 0 10px;
    padding: 0;
    background: none;
    box-shadow: none;
    transition: transform 0.3s;
}

.year-menu a img.year-thumb {
    display: block;
    margin: 0 auto;
    border: 2px solid #b60708;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s;
    width: 120px;
    height: auto;
}

.year-menu a:hover img.year-thumb {
    transform: scale(1.1);
}

.year-thumb {
    width: 100px !important;
    height: auto !important;
    max-width: 100%;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 24px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    max-width: 180px;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s;
    object-fit: cover;
    border: 2px solid #b60708;
}

.gallery-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.photo-credit {
    margin-top: 6px;
    font-size: 0.95em;
    color: #666;
    text-align: center;
}

.back-button {
    display: block;
    margin: 20px auto;
    padding: 6px 12px;
    background-color: #f10908;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 1em;
}

 .modal {
     display: none;
        position: fixed;
        z-index: 1000;
        left: 0; top: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.9);
        justify-content: center;
        align-items: center;
        flex-direction: column;
}
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    user-select: none;
    padding: 0 18px;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.modal-arrow:hover {
    opacity: 1;
}
.modal-arrow-left {
    left: 10px;
}
.modal-arrow-right {
    right: 10px;
}
.modal-content {
     max-width: 90vw;
     max-height: 80vh;
     border-radius: 8px;
     box-shadow: 0 0 20px #000;
}
    .modal-close {
        position: absolute;
        top: 30px;
        right: 40px;
        color: #fff;
        font-size: 2.5rem;
        font-weight: bold;
        cursor: pointer;
        z-index: 1001;
        user-select: none;
    }
    .modal-caption {
        color: #fff;
        margin-top: 10px;
        text-align: center;
        font-size: 1.1rem;
    }

.load-more-btn {
    display: block;
    margin: 2vw auto;
    padding: 0.5em 1.2em;
    background-color: #f10908;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.load-more-btn:hover {
    background-color: #c83c44;
}

.back-button:hover {
    background-color: #c83c44;
}

.download-btn {
    margin-top: 8px;
    padding: 4px 10px;
    background: #f10908;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.download-btn:hover {
    background: #c83c44;
}

@media (max-width: 900px) {
    .gallery-item img {
        max-width: 120px;
        max-height: 80px;
        width: auto;
        height: auto;
    }
    .year-menu img {
        height: 80px;
    }
}

@media (max-width: 600px) {
    .gallery {
        flex-direction: column;
        gap: 10px;
    }
    .gallery-item img {
        max-width: 95vw;
        max-height: 60vw;
        width: 95vw;
        height: auto;
    }
    .year-menu {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .year-menu img {
        width: 95vw;
        height: auto;
        max-width: 100vw;
    }
    .back-button {
        width: 95vw;
        font-size: 1.2em;
    }
}