
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px 0;
    overflow-x: hidden;
}
.gallery-system {
    width: 1000px;
    margin: 0 auto;
}
.gallery-container {
    width: 100%;
    height: 270px;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}
.track {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
}
.image-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: top;
    overflow: hidden;
    margin-right: 10px;
}
.gallery-1 .image-wrapper {
    width: 270px;
    height: 210px;
}
.gallery-2 .image-wrapper {
    width: 210px;
    height: 270px;
}
.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #eee;
    cursor: pointer;
}
.gallery-1 .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
    transform: scale(0.95);
    transition: all 0.3s ease;
}
.gallery-2 .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.image-container img:hover {
    filter: none;
    transform: scale(1);
}
.image-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: bold;
    padding: 8px 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.active {
    opacity: 1;
    pointer-events: all;
}
.overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: transform 0.3s;
}
.overlay.active img {
    transform: scale(1);
}
