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

body {
    font-family: "Cormorant SC", serif;
    background-color: #FFF8E7;
    color: black;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: none;
    padding: 30px 60px 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1000;
    height: 120px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.brand-name {
    font-family: 'Akira Expanded', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    color: black;
    margin-left: 40px;
    line-height: 1;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
}

.nav-link {
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    color: black;
    text-decoration: none;
    font-weight: 400;
    text-transform: capitalize;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    opacity: 0.5;
}

.nav-link.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.instagram-link:hover {
    opacity: 0.5;
}

/* Main Content */
.main-content {
    margin-top: 120px;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    padding: 40px;
}

.page.active {
    display: block;
}

/* Construction Message */
.construction-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 40px;
}

.construction-message p {
    font-family: "Lora", serif;
    font-size: 24px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: 40px 40px;
    padding: 60px 40px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 100%;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Varying sizes for gallery items - row-based layout where rows wait for tallest item */
/* Row 1 (items 1-4) */
.gallery-item:nth-child(1) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(2) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(3) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(4) {
    aspect-ratio: 5/6;
}

/* Row 2 (items 5-8) */
.gallery-item:nth-child(5) {
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(6) {
    aspect-ratio: 3/5;
}

.gallery-item:nth-child(7) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(8) {
    aspect-ratio: 3/4;
}

/* Row 3 (items 9-12) */
.gallery-item:nth-child(9) {
    aspect-ratio: 5/6;
}

.gallery-item:nth-child(10) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(11) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(12) {
    aspect-ratio: 3/4;
}

/* Row 4 (items 13-16) */
.gallery-item:nth-child(13) {
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(14) {
    aspect-ratio: 3/5;
}

.gallery-item:nth-child(15) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(16) {
    aspect-ratio: 3/4;
}

/* Row 5 (items 17-20) */
.gallery-item:nth-child(17) {
    aspect-ratio: 5/6;
}

.gallery-item:nth-child(18) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(19) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(20) {
    aspect-ratio: 3/4;
}

/* Row 6 (items 21-24) */
.gallery-item:nth-child(21) {
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(22) {
    aspect-ratio: 3/5;
}

.gallery-item:nth-child(23) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(24) {
    aspect-ratio: 3/4;
}

/* Row 7 (items 25-28) */
.gallery-item:nth-child(25) {
    aspect-ratio: 5/6;
}

.gallery-item:nth-child(26) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(27) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(28) {
    aspect-ratio: 3/4;
}

/* Row 8 (items 29-32) */
.gallery-item:nth-child(29) {
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(30) {
    aspect-ratio: 3/5;
}

.gallery-item:nth-child(31) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(32) {
    aspect-ratio: 3/4;
}

/* Row 9 (items 33-36) */
.gallery-item:nth-child(33) {
    aspect-ratio: 5/6;
}

.gallery-item:nth-child(34) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(35) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(36) {
    aspect-ratio: 3/4;
}

/* Row 10 (items 37-40) */
.gallery-item:nth-child(37) {
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(38) {
    aspect-ratio: 3/5;
}

.gallery-item:nth-child(39) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(40) {
    aspect-ratio: 3/4;
}

/* Info Page */
.info-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 40px;
    text-align: center;
}

.info-content h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 450;
    margin-bottom: 30px;
    margin-top: 40px;
    text-transform: capitalize;
    color: black;
}

.info-content h2:first-child {
    margin-top: 0;
}

.info-content p {
    font-family: "Lora", serif;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.9;
    color: rgba(0, 0, 0, 0.6);
}

.info-content p:last-child {
    margin-bottom: 0;
    margin-top: 40px;
}

.info-content strong {
    font-family: "Lora", serif;
    font-weight: 400;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.7);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        height: 70px;
        flex-wrap: wrap;
    }

    .brand-name {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .header-nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .main-content {
        margin-top: 70px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 30px 20px;
    }

    .page {
        padding: 20px;
    }

    .info-content {
        padding: 60px 20px;
    }

    .info-content p {
        font-size: 16px;
    }

    .info-content strong {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        height: auto;
        min-height: 70px;
        padding: 12px 15px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
        justify-content: space-around;
        gap: 10px;
    }

    .header-left,
    .header-right {
        flex: 0 0 auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 4/3 !important;
        grid-row: span 1 !important;
    }
}

