body {
    background: #f7fafc;
    font-family: 'National Park', Arial, sans-serif;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Gallery page background to match container */
.gallery-page {
    background: #f7fafc;
}

/* Blog page background to match container */
.blog-page {
    background: #f7fafc;
}

body, input, button, select, textarea {
    font-family: 'National Park', Arial, sans-serif;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    background: #f7fafc;
    padding: 20px;
    border-radius: 0;
}

/* Gallery-specific container for large screens */
.gallery-page .container {
    max-width: 100vw;
}

/* Blog-specific container to maintain readable width */
.blog-page .container {
    max-width: 1200px;
}

/* Large screen optimizations for blog page */
@media (min-width: 1400px) {
    .blog-page .container {
        padding: 20px 40px;
    }
}

@media (min-width: 1800px) {
    .blog-page .container {
        padding: 20px 60px;
    }
}

@media (min-width: 2200px) {
    .blog-page .container {
        padding: 20px 80px;
    }
}

/* Large screen optimizations for gallery */
@media (min-width: 1400px) {
    .gallery-page .container {
        padding: 20px 40px;
    }
    
    .gallery-page .masonry-gallery {
        max-width: none;
    }
    
    .gallery-page .filter-row {
        gap: 32px;
    }
    
    .gallery-page .filter-group {
        min-width: 280px;
        max-width: 280px;
    }
}

@media (min-width: 1800px) {
    .gallery-page .container {
        padding: 20px 60px;
    }
    
    .gallery-page .masonry-gallery {
        max-width: none;
    }
    
    .gallery-page .filter-row {
        gap: 40px;
    }
    
    .gallery-page .filter-group {
        min-width: 300px;
        max-width: 300px;
    }
}

@media (min-width: 2200px) {
    .gallery-page .container {
        padding: 20px 80px;
    }
    
    .gallery-page .masonry-gallery {
        max-width: none;
    }
    
    .gallery-page .filter-row {
        gap: 48px;
    }
    
    .gallery-page .filter-group {
        min-width: 320px;
        max-width: 320px;
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.title-text {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.title-text h1 {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: clamp(1.1em, 6vw, 2em);
    color: #2c3e50;
    max-width: 100vw;
}

.subtitle {
    text-align: center;
    font-size: clamp(0.9em, 4vw, 1.2em);
    color: #718096;
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1em;
}

.nav-link:hover {
    color: #4299e1;
    background-color: #f8f9fa;
    text-decoration: none;
}

.nav-link.active {
    color: #4299e1;
    background-color: #e3f2fd;
    font-weight: 600;
}

.nav-link i {
    font-size: 1.1em;
}

.page-subtitle {
    font-size: 1.8em;
    color: #495057;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 0;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3182ce;
}

.back-link i {
    margin-right: 8px;
}

/* About Me Button */
.about-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
    margin-bottom: 15px;
}

.about-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* About Modal */
#aboutModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content-profile {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content-image {
    background-color: white;
    margin: 5% auto;
    padding: 30px 40px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.about-header p {
    color: #6c757d;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #3182ce;
}

.social-links i {
    font-size: 1.2em;
}

/* Additional styles can be added here */

/* Gallery specific styles */
form { text-align: center; margin-bottom: 30px; }

.masonry-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0 auto;
    max-width: 1400px;
}

.gallery-row {
    display: flex;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 200px;
}
.gallery-image {
    position: relative;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    background: #f7fafc;
    display: block;
    height: auto;
    flex-shrink: 0;
}

.gallery-image:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}
.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    transition: filter 0.3s, opacity 0.3s;
    object-fit: cover;
    background: #f7fafc;
}
.gallery-image:hover img {
    filter: brightness(0.65);
}
.img-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 400;
    font-size: 1.05em;
    text-shadow: 0 2px 8px #0007;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(.4,2,.6,1);
    z-index: 2;
    text-align: center;
    letter-spacing: 0.04em;
    background: none;
    padding: 0;
    width: auto;
    height: auto;
    bottom: auto;
}
.gallery-image:hover .img-title-overlay {
    opacity: 1;
}
.img-meta-overlay { display: none !important; }

/* Responsive masonry gallery */
@media (max-width: 1200px) {
    .gallery-row {
        gap: 10px;
    }
    .masonry-gallery {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .gallery-row {
        gap: 8px;
    }
    .masonry-gallery {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-row {
        gap: 6px;
    }
    .masonry-gallery {
        gap: 6px;
    }
}

/* Modal styles */
#imgModal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85); align-items: center; justify-content: center; flex-direction: column;
}
#imgModal .modal-content-image {
    background-color: white;
    margin: 2.5% auto;
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: -25px;
    right: -35px;
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'National Park', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.modal-close-btn:hover {
    background: #3182ce;
}

#imgModal .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    z-index: 1200;
}

#imgModal .close:hover {
    color: #000;
}
.modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    position: relative;
    flex: 1;
}

.modal-controls {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.modal-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
}

.modal-spinner i {
    font-size: 2rem;
    color: #4299e1;
}
#modalImg {
    max-width: 70vw;
    max-height: 60vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 32px #0008;
    border-radius: 0;
}

.modal-nav-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'National Park', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background: #3182ce;
}
.nav-left {
    left: 20px;
}
.nav-right {
    right: 20px;
}
@media (max-width: 900px) {
    #imgModal .modal-content-image {
        padding: 32px 8px 24px 8px;
    }
    .nav-left, .nav-right {
        left: 8px;
        right: 8px;
    }
    #modalImg {
        max-width: 90vw;
        max-height: 40vh;
    }
}
#modalInfo {
    color: #2d3748; text-align: center; margin: 0 auto; font-size: 1.08em; font-weight: 400;
    background: #fff; padding: 12px 0px 10px 0px; border-radius: 0 0 12px 12px; max-width: 90vw;
    box-shadow: 0 2px 12px #0002;
    min-width: 200px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#modalInfoInner {
    width: 100%;
    max-width: 90vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    justify-content: space-between;
}

/* Blog index styles */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    min-height: 140px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    border-color: #cbd5e0;
}

.blog-image {
    max-height: 250px;
    max-width: 350px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    overflow: hidden;
    border-right: 1px solid #e2e8f0;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 28px;
    gap: 8px;
    min-width: 0;
}

.blog-meta {
    display: flex;
    gap: 18px;
    color: #718096;
    font-size: 0.95em;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    font-size: 0.9em;
    opacity: 0.8;
}

.blog-title {
    font-size: 1.22em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-description {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 1.02em;
    flex-grow: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.read-more-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
    color: white;
    text-decoration: none;
}

@media (max-width: 900px) {
    .blog-card {
        flex-direction: column;
        min-height: unset;
        border-radius: 12px;
    }
    .blog-image {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 180px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .blog-content {
        padding: 16px 20px;
    }
}

/* Blog show page styles */
.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}

.blog-back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    z-index: 10;
}

.blog-back-link:hover {
    color: #3182ce;
}

.blog-back-link i {
    margin-right: 6px;
}

.blog-post-header {
    padding: 20px 40px 20px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-title {
    font-size: 3em;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 18px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    display: flex;
    gap: 24px;
    color: #64748b;
    font-size: 1.05em;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.blog-post-meta i {
    font-size: 0.95em;
    opacity: 0.8;
}

.blog-post-content {
    color: #2d3748;
    font-size: 1.1em;
    line-height: 1.75;
    padding: 40px;
    max-width: 100%;
}

.blog-post-content h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #1a202c;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #1a202c;
    margin: 32px 0 16px 0;
    line-height: 1.4;
}

.blog-post-content p {
    margin-bottom: 24px;
    color: #4a5568;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #4a5568;
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.blog-post-content blockquote {
    border-left: 4px solid #4299e1;
    padding: 16px 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4a5568;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-size: 1.05em;
    line-height: 1.6;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post-content a {
    color: #4299e1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-post-content a:hover {
    border-bottom-color: #4299e1;
}

@media (max-width: 768px) {
    .blog-post-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .blog-post-header {
        padding: 24px 20px 16px 20px;
    }
    
    .blog-post-title {
        font-size: 2em;
        margin-bottom: 12px;
    }
    
    .blog-post-meta {
        gap: 16px;
        font-size: 0.95em;
    }
    
    .blog-post-content {
        padding: 24px 20px;
        font-size: 1.05em;
    }
    
    .blog-post-content h2 {
        font-size: 1.5em;
        margin: 32px 0 16px 0;
    }
    
    .blog-post-content h3 {
        font-size: 1.25em;
        margin: 24px 0 12px 0;
    }
}

.filter-label {
    font-size: 1.1em;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 3px;
    margin-left: 3px;
}
.filter-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    margin-top: 0;
}
.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 250px;
    max-width: 250px;
    flex: 1 1 250px;
    position: relative;
}
.modern-select {
    appearance: none;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 3px;
    padding: 10px 14px;
    font-size: 1em;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    cursor: pointer;
    position: relative;
}
.modern-select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}
.modern-select option[disabled] {
    color: #a0aec0 !important;
}

/* Remove chevron for selects */
.modern-select::-ms-expand { display: none; }
.modern-select::-webkit-appearance { appearance: none; }
.modern-select { background-image: none !important; }

.justified-gallery .caption,
.justified-gallery .jg-caption,
.justified-gallery .jg-title {
    display: none !important;
}

.modal-image-title {
    font-size: 1.15em;
    color: #2d3748;
    font-weight: 500;
    text-align: center;
    width: 100%;
    word-break: break-word;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.modal-image-title #modalImageTitleText {
    flex: 1 1 auto;
    text-align: center;
}
.modal-image-title .nav-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0 8px;
    width: 35px;
    height: 35px;
    font-size: 22px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Blog Post Content Styles */
.blog-text-block {
    margin: 2rem 0;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #2c3e50;
}

.blog-text-block p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-image-block {
    text-align: center;
}

.blog-image-block img {
    max-width: 100%;
    height: auto;
    margin: 0px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-image-block img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-image-caption {
    font-style: italic;
    color: #6c757d;
    font-size: 0.95rem;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .blog-text-block {
        font-size: 1rem;
        margin: 1.5rem 0;
    }
    
    .blog-image-block {
        margin: 2rem 0;
    }
    
    .blog-image-caption {
        font-size: 0.9rem;
        max-width: 95%;
    }
} 