/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.site-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    color: #f5f5f5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #aaaaaa;
    margin-bottom: 2rem;
}

/* ===== Header ===== */
.header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(26,26,26,0.8) 100%);
    border-bottom: 1px solid #333333;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.gallery-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.gallery-item a {
    display: block;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.image-info {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.9);
}

.image-title {
    font-size: 1.1rem;
    color: #f5f5f5;
    font-weight: 500;
}

.price {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #d4af37;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ===== Footer ===== */
.footer {
    margin-top: 4rem;
    padding: 3rem 0;
    background-color: #1a1a1a;
    border-top: 1px solid #333333;
    text-align: center;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f5f5f5;
}

.contact-name {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.contact-phone {
    font-size: 1.2rem;
    color: #aaaaaa;
    margin-bottom: 1rem;
}

.contact-note {
    color: #888;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333333;
    color: #666;
    font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Lightbox Customizations ===== */
.lb-data .lb-caption {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #f5f5f5;
    line-height: 1.5;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lightbox .lb-image {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-loader,
.lb-cancel {
    background-color: rgba(10, 10, 10, 0.9);
}

.lb-dataContainer {
    background-color: rgba(26, 26, 26, 0.95);
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .header {
        padding: 3rem 0 1.5rem;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .price {
        font-size: 1.3rem;
    }

    .contact-info h2 {
        font-size: 1.7rem;
    }

    .contact-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .image-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .price {
        align-self: flex-end;
    }

    .container {
        padding: 0 15px;
    }
}

/* ===== NoScript Warning ===== */
.noscript-warning {
    background-color: #d4af37;
    color: #0a0a0a;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
    font-weight: 500;
}

/* ===== Print Styles ===== */
@media print {
    .header, .footer {
        background: white;
        color: black;
        border: none;
    }

    .gallery-item {
        break-inside: avoid;
        box-shadow: none;
    }

    .price {
        color: black;
    }
}