html {
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: 'Copperplate Gothic', serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    min-width: 100%;
}

* {
    box-sizing: border-box;
}

.gallery {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 120px;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

.card {
    background: transparent;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 80vw;
    max-width: 100vw;
    margin: 0 auto;
    position: relative;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/1.2;
    object-fit: contain;
    display: block;
    cursor: default;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card img.loaded {
    opacity: 1;
}

.card p {
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    font-family: 'Copperplate Gothic', serif;
    letter-spacing: 0.1em;
    position: relative;
}

.card p .dimensions {
    position: absolute;
    left: calc(70%);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    color: #888;
}

.card .description {
    padding: 0 20px 20px 20px;
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    font-family: 'Copperplate Gothic', serif;
    line-height: 1.6;
    color: #666;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 400;
    font-family: 'Copperplate Gothic', serif;
    letter-spacing: 0.2em;
    padding: 0;
    margin: 0;
    color: #333;
}

.main-description {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'Copperplate Gothic', serif;
    line-height: 1.8;
    color: #888;
    padding: 0;
    margin: 0 auto;
    width: 90vw;
    max-width: calc(100vw - 100px);
}

.sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    max-width: 40px;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-icon:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
    fill: #111;
}

.wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer {
    background: #fff;
    color: #222;
    text-align: center;
    padding: 40px 5px;
    margin-top: 80px;
    font-family: 'Copperplate Gothic', serif;
    border-top: 1.5px solid #222;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
    overflow: hidden;
    transform: translateZ(0);
}

.footer.aos-init {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transform: translateZ(0);
}

.footer.aos-animate {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transform: translateZ(0);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.footer-section {
    flex: 1;
    min-width: 100px;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    font-weight: normal;
}

.footer-section p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.down-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 90vh;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.down-arrow svg {
    width: 48px;
    height: 48px;
    fill: #888;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    cursor: grab;
}

.modal-content:active {
    cursor: grabbing;
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: #bbb;
}

@media (max-width: 768px) {
    .sidebar {
        left: 10px;
    }
    .sidebar-icon {
        width: 20px;
        height: 20px;
        border: 1px solid #222;
    }
    .sidebar-icon svg {
        width: 10px;
        height: 10px;
    }
    .main-description {
        width: 80vw;
        margin: 0 auto;
    }
    .main-title {
        font-size: 2.5rem;
    }
    .main-description {
        font-size: 1rem;
    }
    .card {
        width: 95vw;
    }
    .card img {
        aspect-ratio: 1.5/1;
    }
    .card p {
        font-size: 1.5rem;
    }
    .card .description {
        font-size: 1rem;
    }
    .card p .dimensions {
        left: 90%;
    }
} 