/*
Theme Name: NQ Photography
Description: A minimalist and modern photography theme with a unique vertical scrolling masonry gallery.
Author: WP Theme Gen
Version: 1.0
License: GPL v2 or Later
Text Domain: no-quiet-photography
*/

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Modern, clean font */
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Light theme */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif; /* For big typography elements */
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-title {
    font-size: clamp(2rem, 5vw, 4rem);
    text-align: center;
    margin: 0;
    padding: 20px 0;
}

/* --- Layout & Components --- */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0); /* Transparent white */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
	max-height:120px;
}

#masthead {
max-height: 8vh;
overflow:hidden;
display:block;
}

.site-logo {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
	    max-height: 85px;
    width: auto;

}

.custom-logo {
    max-height: 85px;
    width: auto;
}

.hamburger-menu {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.main-navigation ul {
    list-style: none;
    display: none; /* Hidden by default, toggled by JS */
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    width: 250px;
    height: 100vh;
    padding-top: 100px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.main-navigation.active ul {
    display: flex;
    transform: translateX(0);
}

.main-navigation li {
    margin: 15px 0;
}

.main-navigation a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    padding: 10px 20px;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #0073aa; /* WordPress blue for hover */
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Transparent white */
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.footer-contact-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #0073aa;
}

/* Homepage Gallery */
.gallery-container {
    padding-top: 80px; /* Space for fixed header */
    padding-bottom: 80px; /* Space for fixed footer */
    height: 100vh; /* Make sure it fills the viewport */
    overflow: hidden; /* Hide scrollbar, MasonryInfiniteGrid handles scroll */
    position: relative;
}

/* MasonryInfiniteGrid styles */
.infinitegrid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items if they don't fill the row */
    overflow-y: scroll; /* Enable vertical scrolling within the grid */
    height: 100%; /* Take full height of parent */
    padding: 10px; /* Some padding around the grid */
}

.grid-item {
    padding: 5px;
    break-inside: avoid; /* Prevent items from breaking across columns (for traditional masonry, but we're doing custom scroll) */
    position: relative; /* For scroll effects */
}

.grid-item img {
    object-fit: cover; /* Cover the area, crop if necessary */
    width: auto; /* Let js handle sizing */
    height: auto; /* Let js handle sizing */
    max-width: 10vw; /* Max thumbnail size */
    max-height: 10vh; /* Max thumbnail size */
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Scrolling effects for columns - This will be handled by JavaScript manipulating translateY */
/* The CSS below is conceptual and would be applied dynamically by JS */
/*
.odd-column {
    transform: translateY(var(--scroll-offset-odd, 0px));
}
.even-column {
    transform: translateY(var(--scroll-offset-even, 0px));
}
*/

/* Portfolio Page */
.portfolio-page-content {
    padding: 120px 20px; /* Space for fixed header/footer */
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.portfolio-sort-by select,
.portfolio-search-bar input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-album {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.portfolio-album:hover {
    transform: translateY(-5px);
}

.portfolio-album-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-album-info {
    padding: 15px;
}

.portfolio-album-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.portfolio-album-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Contact Page */
.contact-page-content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px; /* Space for fixed header/footer */
    position: relative;
}

.contact-form-wrapper {
    max-width: 600px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-wrapper h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    color: #333;
}

.contact-form-wrapper .wpcf7 { /* Styles for Contact Form 7 */
    text-align: left;
}

.contact-form-wrapper .wpcf7 p {
    margin-bottom: 15px;
}

.contact-form-wrapper .wpcf7 label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.contact-form-wrapper .wpcf7 input[type="text"],
.contact-form-wrapper .wpcf7 input[type="email"],
.contact-form-wrapper .wpcf7 textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.contact-form-wrapper .wpcf7 input[type="text"]:focus,
.contact-form-wrapper .wpcf7 input[type="email"]:focus,
.contact-form-wrapper .wpcf7 textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.contact-form-wrapper .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-wrapper .wpcf7 input[type="submit"] {
    background-color: #333;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: auto;
    display: block;
    margin-top: 20px;
}

.contact-form-wrapper .wpcf7 input[type="submit"]:hover {
    background-color: #0073aa;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 20px;
    }

    .site-logo {
        font-size: 1.5rem;
    }

    .main-navigation ul {
        width: 100%;
    }

    .footer-contact-link {
        font-size: 1rem;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .portfolio-album-thumbnail img {
        height: 150px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 15px;
    }

    .site-logo {
        font-size: 1.3rem;
    }

    .main-navigation a {
        font-size: 1.3rem;
    }

    .portfolio-controls {
        flex-direction: column;
        gap: 15px;
    }
}


/* Add to your style.css or a dedicated component CSS file */

.homepage-portfolio-gallery {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.homepage-portfolio-gallery .section-title {
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #333;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Add any padding or margin as needed */
}

/* Infinite Grid specific styles */
.infinite-grid-wrapper {
    /* Required for InfiniteGrid */
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin: 10px; /* Spacing between items */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: block; /* Ensure it behaves as a block */
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    text-align: left;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    margin: 0;
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-all-button-wrapper {
    margin-top: 40px;
}

/* Basic responsive adjustments for the gallery */
@media (max-width: 768px) {
    .homepage-portfolio-gallery {
        padding: 20px 10px;
    }
    .homepage-portfolio-gallery .section-title {
        font-size: 2em;
    }
}