/* Reset body to normal scrolling behavior */
body {
    margin: 0;
    padding: 0;
    background-color: #333333; /* Dark grey background */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main container that grows with content */
.main-container {
    width: 70%;
    position: relative;
    background-color: transparent; /* Change from #fff to transparent */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto; /* Center the container */
    min-height: 100vh;
    overflow: visible; /* Allow content to be visible */
    padding: 0; /* Remove any padding that might affect nav width */
    box-sizing: border-box;
}

/* Updated top nav styling for better centering */
.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(40, 40, 40, 0.8);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 1500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Create left and right sections with equal width */
.top-nav a:not(.nav-logo) {
    flex: 0 1 80px; /* Give each link a fixed basis of 80px */
    text-align: center; /* Center the text */
}

/* Logo styling */
.nav-logo {
    padding: 0 30px; /* Increased padding around logo */
    margin: 0 10px; /* Added margin for extra spacing */
}

.nav-logo img {
    height: 40px;
    width: auto;
    mix-blend-mode: difference;
}

/* Adjust link text size to be more uniform */
.top-nav-link {
    color: white;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem; /* Slightly smaller, uniform font size */
    letter-spacing: 1px;
    transition: transform 0.3s, color 0.3s;
    padding: 5px 10px;
    white-space: nowrap; /* Prevent text wrapping */
}

.top-nav-link:hover {
    color: #b8b8b8;
    transform: scale(1.01);
}

.nav-links-vertical {
    display: none;
}
/* Video background */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Center using translate, then scale */
    min-height: 100vh;
    width: 80%;
    height: auto;
    z-index: -1000;
    object-fit: cover;
}

/* Content area */
.content {
    position: relative;
    z-index: 1;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Keep social icons and nav links fixed to the window */
.social-icons-vertical {
    position: fixed;
    left: 16%; /* Positioned relative to the 70% container */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
}

.nav-links-vertical {
    position: fixed;
    right: 15%;
    top: 10%; /* Changed from 50% to 10% to place it at the top */
    transform: none; /* Remove vertical centering transform */
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2000;
}

.video-controls {
    position: fixed;
    bottom: 20px;
    left: 15%;
    width: 70%;
    z-index: 1000;
    text-align: center;
}

#video-slider {
    width: 70%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#video-slider:hover {
    opacity: 1;
}

#video-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

#video-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    border: none;
}

.section {
    display: flex;
    align-items: center;
    max-width: 1000px; /* Wider than contact form but same principle */
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.text-section {
    flex: 1.3; /* Take up half of the section */
    padding: 15px; /* Add some padding */
    color: rgb(32, 32, 32); /* Text color */
    display: flex;
    flex-direction: column; /* Stack text vertically */
    justify-content: center; /* Center text vertically */
}

.image-section {
    flex: 1; /* Take up half of the section */
    display: flex;
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
    overflow: hidden; /* Prevent overflow */
    border-radius: 0 8px 8px 0; /* Optional: add rounding to the right corners */
    height: 100%; /* Ensure the image section takes full height of the parent */
}

.image-section img {
    max-width: 100%; /* Make sure the image is responsive */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Allow width to adjust */
    max-height: 100%; /* Constrain the height to the section */
    object-fit: contain; /* Ensure the image fits within the section without distortion */
}

/* Static boxes */
.static-box {
    width: calc(90% - 2px);
    height: 350px;
    background-color: rgb(255, 255, 255);
    border: 1px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #333; /* Dark text on white background */
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: none; /* Remove text shadow from parent */
}

.static-box h1, .static-box h2 {
    margin: 0;
    padding: 0;
}

/* For the responsive transparent title */
.transparent-title {
    background-color: transparent;
    width: calc(100% - 10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.transparent-title h1 {
    color: white;
    font-family: 'Cinzel', serif;
    font-size: clamp(5 rem, 4vw, 3.5rem); /* Responsive font size */
    letter-spacing: clamp(1px, 0.2vw, 2px); /* Responsive letter spacing */
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    white-space: nowrap; /* Keeps text on one line */
}

/* Media query for very small screens to allow wrapping */
@media (max-width: 480px) {
    .transparent-title h1 {
        white-space: normal;
        font-size: clamp(1.5rem, 7vw, 1.8rem);
    }
}

.social-icon {
    color: rgb(0, 0, 0);
    font-size: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    display: block;
    mix-blend-mode: difference;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.nav-link {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s, color 0.5s;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    padding: 5px 0;
    mix-blend-mode: difference;
}

.nav-link:hover {
    opacity: 1;
    transform: rotate(0) scale(1.1);
}

/* Contact Page Styling */
.contact-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #333;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    background-color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.submit-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    align-self: center;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #555;
}

.content {
    padding-top: 30px;
}

/* Ensure the transparent title is centered and properly styled */
.transparent-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    align-self: center;
    padding: 12px 40px;
    background-color: rgba(40, 40, 40, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: rgba(40, 40, 40, 1);
    transform: scale(1.02);
}

/* Placeholder styling */
::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-family: 'Cinzel', serif;
}

/* Add active state for navigation */
.top-nav-link.active {
    color: #ffffff;
    transform: scale(1.05);
}

/* Logo styling in nav bar */
.nav-logo {
    display: flex;
    align-items: center;
    padding: 0 20px; /* Add some spacing around the logo */
    transition: transform 0.3s ease;
}

.nav-logo img {
    height: 50px; /* Adjust this value to match your desired logo size */
    width: auto;
    mix-blend-mode: difference; /* This will help the logo stand out against the background */
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* News Page Styles */
.news-container {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%; /* Added to ensure proper scaling */
    box-sizing: border-box; /* Added to include padding in width calculation */
    padding: 0 20px; /* Added consistent padding */
}

.news-post {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, max-height 0.5s ease;
    overflow: hidden;
    width: 100%; /* Added to ensure proper scaling */
    box-sizing: border-box; /* Added to include padding in width calculation */
}

.news-post:hover {
    transform: translateY(-5px);
}

.news-date {
    color: #666;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    color: #333;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.news-preview {
    color: #444;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-full-content {
    display: none;
    color: #444;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-post.expanded .news-full-content {
    display: block;
    opacity: 1;
}

.news-read-more {
    cursor: pointer;
    display: inline-block;
    color: #333;
    font-family: 'Cinzel', serif;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.news-read-more:hover {
    color: #000;
    border-bottom-color: #000;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .news-container {
        padding: 0 15px;
    }
    
    .news-post {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-preview,
    .news-full-content {
        font-size: 0.9rem;
    }
}

/* News specific resize adjustments */
.resize-container .news-post {
    max-width: 600px; /* Reduced from the default width */
    margin: 0 auto; /* Center the post */
}

/* Or if you prefer targeting the resize-section directly */
.resize-container .resize-section {
    max-width: 600px; /* Reduced from the default width */
    margin: 0 auto; /* Center the section */
}

.thank-you-content,
.error-content {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 600px;
}

.thank-you-content h1,
.error-content h1 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.thank-you-content p,
.error-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #555;
}

.prints-grid {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prints-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.prints-button:hover {
    background-color: #555;
}

/* Ensure iframe responsiveness */
.prints-grid iframe {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.featured-prints {
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    max-width: 1200px;
}

.featured-prints h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.featured-prints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.prints-grid h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.store-description {
    text-align: center;
    color: #333;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.store-button {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.store-button i {
    margin-right: 10px;
}

.store-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.featured-print {
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
}

.featured-print-image {
    max-width: 400px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-print-info {
    flex: 1;
    text-align: left;
}

.featured-print-info h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.featured-print-info p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.print-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.print-link:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.store-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .featured-print {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .featured-print-image {
        max-width: 100%;
    }

    .featured-print-info {
        text-align: center;
    }
}