/* Base Styles */
:root {
    --main-bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #999999;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #555555;
    --header-height: 120px;
    --content-width: 1200px;
}

@font-face {
    font-family: 'Eau';
    src: url('https://fonts.cdnfonts.com/s/19365/Eau-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

html, body {
    font-family: 'Montserrat', 'Avenir Next', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--main-bg-color);
    height: 100%;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
    background-color: var(--main-bg-color);
    z-index: 100;
    border-bottom: 1px solid var(--medium-gray);
    padding-left: 20px;
}

.logo a {
    display: block;
    margin-bottom: 20px;
}

.logo-text {
    font-family: 'Avenir Next', 'Eau', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.main-nav {
    margin-bottom: 20px;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Consistent spacing between menu items */
}

.main-nav li {
    margin-bottom: 0; /* Remove margin to use gap instead */
}

.main-nav li a {
    position: relative;
    padding: 2px 0;
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 0.05em; /* Added letter spacing for menu items */
}

.main-nav li.active a {
    font-weight: 500;
    color: var(--text-color);
}

.main-nav li a:hover {
    color: var(--text-color);
}

.language-toggle {
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    margin-top: 5px; /* Reduced margin to match spacing between nav items */
}

.language-toggle a {
    display: inline-block !important;
    padding: 0 3px;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-toggle a.active {
    font-weight: 700;
    color: #000;
}

/* Gallery */
.gallery-container {
    flex: 1;
    padding: 40px 0;
}

/* Column-based masonry layout for gallery as shown in reference */
.gallery {
    display: flex;
    gap: 30px; /* Spacing between columns */
    margin-bottom: 40px;
    width: 100%;
}

.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Consistent spacing between all elements within column */
    width: calc((100% - 60px) / 3); /* Account for gaps between columns */
}

.gallery-item {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Apply different aspect ratios */
/* All gallery items have the same width */
.gallery-item .image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Square images */
.gallery-item:not(.rectangular):not(.video-item) .image-container {
    aspect-ratio: 1/1; /* Square aspect ratio */
}

/* Rectangular images */
.gallery-item.rectangular .image-container {
    width: 100%;
    padding-bottom: 0;
}

/* Video items - maintain original proportions */
.gallery-item.video-item .image-container {
    width: 100%;
    padding-bottom: 0;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video containers */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Remove all hover effects and overlays */
.hover-overlay,
.image-placeholder::before,
.image-placeholder::after,
.magnify {
    display: none;
}

/* Video items */
.video-item .image-placeholder {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for videos */
    background-color: #000;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0 auto; /* Center horizontally */
    padding: 0; /* Ensure no padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Custom play button */
.play-button {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 30px;
    border-color: transparent transparent transparent #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.5));
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

/* Enable interactions in lightbox */
#lightbox-video-container iframe {
    pointer-events: auto;
}

/* Remove video hover effects */
.video-placeholder::before,
.video-placeholder::after,
.video-item:hover .video-placeholder::before,
.video-item:hover .video-placeholder::after {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1010;
}

.lightbox-media-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    width: auto;
    height: auto;
}

#lightbox-video-container {
    width: 80vw;
    height: 45vw; /* 16:9 aspect ratio */
    max-width: 1200px;
    max-height: 675px;
}

.lightbox-controls {
    display: none; /* Hide navigation controls as requested */
}

.lightbox-nav-button {
    display: none; /* Hide navigation buttons as requested */
}

/* Content Pages */
.content-container {
    flex: 1;
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.about-content, .contact-content {
    padding: 0 20px;
}

h1 {
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 2rem;
}

h2 {
    margin: 30px 0 15px;
    font-weight: 400;
    font-size: 1.5rem;
}

.bio-section, .contact-section {
    margin-bottom: 40px;
}

.bio-photo {
    margin-bottom: 30px;
    max-width: 300px;
}

.bio-text p {
    margin-bottom: 20px;
}

.bio-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

.bio-text li {
    margin-bottom: 10px;
}

/* Contact Form */
.contact-details {
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

.submit-btn {
    padding: 10px 20px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--dark-gray);
}

/* Footer */
.site-footer {
    padding: 20px 0;
    border-top: 1px solid var(--medium-gray);
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Two columns on tablet */
    .gallery {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .gallery-column {
        min-width: calc(50% - 8px); /* Two columns accounting for gap */
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 15px;
    }
    
    /* Single column on mobile */
    .gallery-column {
        min-width: 100%;
    }
    
    .content-container {
        padding: 20px 0;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
}
