@charset "utf-8";
/* CSS Document */
.gallery {
    width: auto;
    margin: 10px auto;
    column-width: 240px;
    column-gap: 10px;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.35);
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .caption {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Lightbox as centered modal */
.lightbox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.lightbox.show {
    opacity: 1;
}

.lightbox img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.show img {
    opacity: 1;
    transform: scale(1);
}

.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    padding: 0 20px;
    cursor: pointer;
}

.lightbox .prev { left: -60px; }
.lightbox .next { right: -60px; }

.lightbox::after {
    display: none; /* No "Click to close" message anymore */
}