/* Item view — full screen, fixed CLOSE (Figma node 35:682) */

body.is-item {
    display: block;
    margin: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f7f7f4;
    padding: 0;
    padding-bottom: 32px;
    box-sizing: border-box;
}

.item-close {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 16px;
    font-family: "Soehne", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    background-color: transparent;
}

.item-close:hover {
    text-decoration: underline;
}

/* Top inset clears fixed CLOSE; horizontal padding lives on .item-info (Figma) */
.item-main {
    padding: calc(16px + 11px + 16px) 0 48px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Figma “Item Info”: py-48 px-16; internal gaps 24px */
    padding: 48px 16px;
}

.item-index {
    font-family: "Soehne", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: normal;
    color: #000000;
    white-space: nowrap;
    margin: 0;
}

.item-desc {
    font-family: "Tiempos Text", Georgia, serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    color: #505050;
    margin: 0;
    max-width: 300px;
    width: 100%;
}

.item-specs {
    font-family: "Soehne", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
    white-space: nowrap;
}

.item-specs p {
    margin: 0;
    line-height: normal;
}

.item-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

.item-gallery__cell {
    min-width: 0;
    aspect-ratio: 344 / 430;
    position: relative;
    overflow: hidden;
    background-color: #e8e8e4;
}

.item-gallery__cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .item-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}
