body,
html {
    margin: 0;
    padding: 0;
    overflow: visible;
    font-family: "Archivo Narrow", serif;
    min-height: calc(100vh + 0.625rem);
    padding-bottom: 6.25rem;
    background-color: #000 !important;
    font-size: 16px;
}

.menu {
    background-color: #fff;
}

.menu a {
    color: #000;
}

.catalogue-content {
    padding: 3.125rem;
    padding-top: 5rem;
}

/* Single flex container - all images flow together */
.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
}

.image-item {
    display: flex;
    flex-direction: column;
}

/* Smaller base size - scales with zoom */
.image-item img {
    width: auto;
    height: 20rem; /* Smaller: 320px at base */
    object-fit: contain;
    cursor: zoom-in;
}

.image-item img:hover {
    cursor: zoom-in;
}

.image-item .description {
    margin-top: 0.625rem;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    color: #aaa;
}

/* Lightbox styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 20;
    backdrop-filter: blur(0.3125rem);
    -webkit-backdrop-filter: blur(0.3125rem);
}

.full-image {
    display: none;
    position: fixed;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    z-index: 30;
    cursor: zoom-out;
}

.image-description {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    z-index: 30;
    width: auto;
    max-width: 100%;
    padding: 0;
}

.close-btn {
    position: fixed;
    top: 2.5rem;
    right: 1.25rem;
    font-size: 2.5rem;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 40;
}

.close-btn:hover {
    color: #ccc;
}

/* Responsive scaling - larger on bigger screens */
@media (min-width: 87.5rem) { /* 1400px */
    .image-item img {
        height: 25rem; /* 400px */
    }
}

@media (min-width: 112.5rem) { /* 1800px */
    .image-item img {
        height: 30rem; /* 480px */
    }
}

/* Mobile - smaller images */
@media (max-width: 56.25rem) { /* 900px */
    .catalogue-content {
        padding: 1.25rem;
        padding-top: 5rem;
    }
    
    .image-list {
        gap: 0.625rem;
    }
    
    .image-item {
        margin-bottom: 0.625rem;
    }
    
    .image-item img {
        height: 12rem; /* 192px on mobile */
        max-width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 28.125rem) { /* 450px */
    .image-item img {
        height: 15rem; /* 240px */
    }
    
    .menu {
        padding-left: 0.3125rem;
    }
}

/* Landscape mode */
@media (max-height: 31.25rem) and (orientation: landscape) { /* 500px */
    body,
    html {
        overflow-y: auto;
        height: auto;
    }
    
    .catalogue-content {
        padding-top: 3.75rem;
        padding-bottom: 1.875rem;
    }
    
    .image-list {
        gap: 0.625rem;
    }
    
    .image-item img {
        height: 10rem; /* 160px in landscape */
        max-height: 70vh;
    }
    
    .image-item .description {
        font-size: 0.75rem;
        margin-top: 0.3125rem;
    }
    
    .menu {
        padding: 0.3125rem 0 0.3125rem 0.625rem;
    }
    
    .menu a {
        padding: 0.3125rem 0.25rem;
        font-size: 1rem;
    }
}

/* Very small landscape screens */
@media (max-height: 21.875rem) and (orientation: landscape) { /* 350px */
    .menu {
        position: absolute;
    }
}