:root {
    --card-radius: 10px;
    --card-shadow: 0 4px 10px rgba(0,0,0,0.2);
    --hover-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.gallery-slideshow-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 0px auto 20px;
    max-width: 1000px;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.gallery-card {
    background: #f0f0f0;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.015);
    box-shadow: var(--hover-shadow);
}

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

.gallery-card.large {
    flex: 1 1 100%;
    aspect-ratio: 16/7;
}

.gallery-card.small {
    flex: 1 1 calc(50% - 15px);
    aspect-ratio: 16/9;
}

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

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    border: 4px solid orange;
    background: #222;
    box-shadow: 0 0 15px #000;
}

.lightbox-overlay:after {
    content: "×";
    color: #fff;
    font-size: 32px;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
}
