/* =============================================================================
   etoy.GALLERY – gallery.css
   ============================================================================= */

/* --- Full-width wrapper (outside container) --- */

.gallery-wide {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

@media screen and (min-width: 981px) {
    .gallery-wide {
        padding: 0 50px;
    }
}

/* --- Overview: Gallery Cards --- */

.gallery-overview {
    margin-top: 20px;
}

.gallery-card {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.gallery-card:hover,
.gallery-card:visited {
    color: #fff;
    opacity: 0.8;
}

.gallery-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}

.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-img img {
    transform: scale(1.04);
}

.gallery-card-info {
    padding: 6px 0 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.gallery-card-info strong {
    display: block;
    color: #ff6600;
    font-size: 0.9rem;
}


/* --- Single Gallery: Thumb Grid --- */

.gallery-grid {
    margin-top: 15px;
}

.gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

/* --- Gallery meta --- */

.gallery-meta {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 20px;
}

/* --- Lightbox --- */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.hidden {
    display: none;
}

.lb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
    box-sizing: border-box;
    cursor: default;
}

#lb-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-size: 2rem;
    line-height: 1;
    padding: 10px;
    z-index: 10000;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    opacity: 1;
    color: #ff6600;
}

.lb-close {
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
}

.lb-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lb-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-size: 0.85rem;
}

/* --- Responsive --- */

@media screen and (max-width: 600px) {
    .lb-wrap {
        padding: 50px 50px;
    }
    .lb-prev { font-size: 2rem; }
    .lb-next { font-size: 2rem; }
}
