/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #333;
    min-height: 100vh;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Navigation */
.menu-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.menu-button:hover {
    transform: scale(1.05);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 50;
    display: none;
    padding: 2rem;
}

.menu-overlay.active {
    display: block;
}

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
}

.menu-nav a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.menu-nav a:hover {
    color: #666;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #333;
    margin-bottom: 0.5rem;
}

.header h2 {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #666;
    text-transform: uppercase;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 0 1rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-button:hover {
    background: #e5e7eb;
}

.filter-button.active {
    background: #333;
    color: white;
}

/* Gallery */
.gallery {
    column-count: 1;
    column-gap: 1.5rem;
    padding: 1.5rem;
    max-width: 2400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    vertical-align: top;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    transform-origin: center center;
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-info {
    color: white;
    margin-top: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.modal-measurements {
    color: #ccc;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.modal-price {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.modal-sold {
    color: #ff4444;
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* About Page */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    display: grid;
    gap: 2rem;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.contact-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contact-info {
    margin-top: 1rem;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-top: 0.5rem;
}

.contact-info a:hover {
    color: #666;
}

/* Responsive Design */
@media (min-width: 768px) {
    .gallery {
        column-count: 2;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .about-content h3 {
        font-size: 1.8rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header h2 {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .gallery {
        column-count: 2;
    }

    .about-grid {
        gap: 6rem;
    }
}

@media (min-width: 1280px) {
    .gallery {
        column-count: 3;
    }
}

@media (min-width: 1536px) {
    .gallery {
        column-count: 4;
    }
}