/* gallery.css - Beautiful Masonry Gallery with Varied Heights */
:root {
    --primary-color: #fea70a;
    --dark-color: #000000;
    --light-color: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 140px 0 100px;
    background-color: var(--light-color);
}

.gallery-container {
    width: 100%;
    padding: 20px 0;
}



.gallery-title {
    font-family: var(--font-main);
    font-size: 3rem;
    color: var(--light-color);
    margin-bottom: 20px;
    text-align: left;
}

.gallery-subtitle {
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 60px;
    text-align: left;
    max-width: 800px;
}


/* Masonry Gallery Grid with Varied Heights */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
    gap: 16px;
    grid-auto-rows: 200px; /* Base row height */
}

.gallery .item {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery .item img:hover {
    transform: scale(1.03);
}

/* Regular items - base size */
.gallery .item {
    grid-row: span 1;
    height: 200px;
}

/* Special sizes - TALL items (span 2 rows) */
.gallery .item.tall {
    grid-row: span 2;
    height: 400px; /* 200px + 16px gap + 200px */
}

/* Special sizes - WIDE items (span 2 columns) */
.gallery .item.wide {
    grid-column: span 2;
    height: 200px; /* Same height as regular */
}

/* Make 2nd row items smaller */
.gallery .item:nth-child(n+4):nth-child(-n+6) {
    height: 180px; /* Smaller for 2nd row */
}

/* Make 3rd row items even smaller */
.gallery .item:nth-child(n+7):nth-child(-n+9) {
    height: 160px; /* Smallest for 3rd row */
}

/* Adjust tall items that are in 2nd row or beyond */
.gallery .item.tall:nth-child(n+4) {
    height: 356px; /* 180px + 16px + 160px */
}

/* Add overlay effect on hover */
.gallery .item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    pointer-events: none;
}

.gallery .item:hover::after {
    opacity: 1;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 1rem;
    color: #999;
    max-width: 250px;
}

.footer-heading {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-main);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item p {
    margin: 0;
    color: #ccc;
    line-height: 1.5;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-links img {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        grid-auto-rows: 180px; /* Smaller base on tablet */
    }
    
    .gallery .item {
        height: 180px;
    }
    
    .gallery .item.tall {
        height: 376px; /* 180px + 16px + 180px */
    }
    
    .gallery .item.wide {
        grid-column: span 2;
        height: 180px;
    }
    
    /* Reset varied heights on tablet for consistency */
    .gallery .item:nth-child(n+4):nth-child(-n+6),
    .gallery .item:nth-child(n+7):nth-child(-n+9) {
        height: 180px;
    }
    
    .gallery .item.tall:nth-child(n+4) {
        height: 376px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 20px;
        transition: left 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .gallery-section {
        padding: 120px 0 80px;
    }
    
    .gallery {
        grid-template-columns: 1fr; /* 1 column on mobile */
        grid-auto-rows: 250px; /* Taller on mobile for better viewing */
    }
    
    /* Reset all heights and spans on mobile */
    .gallery .item,
    .gallery .item.wide,
    .gallery .item.tall {
        height: 250px;
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Reset all special heights on mobile */
    .gallery .item:nth-child(n+4):nth-child(-n+6),
    .gallery .item:nth-child(n+7):nth-child(-n+9) {
        height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        padding: 10px 0;
    }
    
    .gallery {
        gap: 12px;
        grid-auto-rows: 220px; /* Slightly smaller on very small screens */
    }
    
    .gallery .item,
    .gallery .item.wide,
    .gallery .item.tall {
        height: 220px;
    }
    
       .footer-links {
        display: inline-block;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: left;
    }
}

/* For very large screens */
@media (min-width: 1400px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on very large screens */
        gap: 20px;
        grid-auto-rows: 180px; /* Smaller base for 4 columns */
    }
    
    .gallery .item {
        height: 180px;
    }
    
    .gallery .item.tall {
        height: 380px; /* 180px + 20px + 180px */
    }
    
    .gallery .item.wide {
        grid-column: span 2;
        height: 180px;
    }
    
    /* Adjust varied heights for 4-column layout */
    .gallery .item:nth-child(n+5):nth-child(-n+8) {
        height: 160px; /* 2nd row in 4-column layout */
    }
    
    .gallery .item:nth-child(n+9):nth-child(-n+12) {
        height: 140px; /* 3rd row in 4-column layout */
    }
    
    .gallery .item.tall:nth-child(n+5) {
        height: 320px; /* 160px + 20px + 140px */
    }
}