body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.image-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 960px;
    margin: auto;
}

.image-row {
    display: flex;
    gap: 10px;
}

.image-row img {
    width: 100%;
    height: auto;
    flex: 1;
    object-fit: cover;
    cursor: pointer;
}

.image-row:first-child img {
    height: 300px;
}

.image-row:last-child img {
    height: 150px;
}

.image-overlay {
    position: relative;
    flex: 1;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.overlay-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 24px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 80%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
    }
}
