* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #e9e7e1;
    color: #222222;
}

header {
    position: relative;
    z-index: 1;
    height: 110px;
    padding: 28px 40px;
    background: #eee1c0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

header p {
    margin: 6px 0 0;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.photo-floor {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(100vh - 110px);
    min-height: 620px;
    overflow: visible;
}

.photo {
    position: absolute;
    width: clamp(220px, 22vw, 320px);
    max-height: 360px;
    object-fit: cover;
    padding: 8px;
    background: white;
    border-radius: 10px
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transform-origin: center;
    transform: rotate(var(--rotation, 0deg));
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.photo:hover {
    z-index: 1000 !important;
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 800px) {
    body {
        overflow-x: hidden;
    }

    header {
        height: auto;
        padding: 22px 18px;
    }

    header h1 {
        font-size: 24px;
    }

    .photo-floor {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
        min-height: 0;
        padding: 20px 16px 40px;
        overflow: visible;
    }

    .photo {
        position: static;
        width: 100%;
        max-width: 520px;
        max-height: none;
        margin: 0 auto;
        transform: none !important;
        animation: none;
    }

    .photo:hover {
        transform: none;
    }

    .lightbox {
        padding: 24px 48px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 78vh;
    }

    .lightbox-arrow {
        width: 42px;
        height: 64px;
        font-size: 52px;
    }

    .lightbox-previous {
        left: 3px;
    }

    .lightbox-next {
        right: 3px;
    }
}
header {
    position: relative;
    z-index: 0 !important;
    background: rgb(219, 214, 193);
}

.photo-floor {
    position: relative;
    z-index: 10 !important;
    overflow: visible;
}

.photo {
    z-index: 20;
}

.photo:hover {
    z-index: 1000 !important;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
    background: rgba(255, 255, 255, 0.97);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 10001;

    border: 0;
    background: transparent;
    color: #111111;
    font-size: 44px;
    cursor: pointer;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    z-index: 10001;

    border: 0;
    background: transparent;
    color: #111111;
    font-size: 70px;
    cursor: pointer;

    transform: translateY(-50%);
}

.lightbox-previous {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

body.lightbox-open {
    overflow: hidden;
}
