:root {
    --primary-color: #d4b08c;
    --secondary-color: #f8f5f0;
    --dark-color: #2c2c2c;
    --light-color: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --bg-image: url('images/photoshoot/DAFBB866-B579-4192-9583-C07CF4E1FF8C-min.jpeg');
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-style: italic;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: #f0e9e2;
    background-image: url('images/photoshoot/DAFBB866-B579-4192-9583-C07CF4E1FF8C-min.jpeg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 20px;
    color: var(--light-color);
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.dates {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    margin-top: 30px;
    color: var(--primary-color);
}

.divider {
    width: 150px;
    height: 1px;
    background-color: var(--primary-color);
    margin: 40px auto;
}

.hero .dates {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-top: 20px;
    letter-spacing: 1px;
}

.hero .engagement-date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem; /* Slightly larger for desktop */
    color: #FFFFFF;
    margin-top: 25px;
    letter-spacing: 1px;
}

/* Couple Section */
.couple {
    padding: 120px 0;
    text-align: center;
    background-color: var(--light-color);
}

.section-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.couple-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #555;
}

.couple .engagement-date-thanks {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem; /* Slightly larger for desktop */
    color: var(--text-color);
    margin-top: 40px;
    text-align: center;
    opacity: 0.9;
}

/* Gallery */
.gallery {
    padding: 120px 0;
    background-color: var(--secondary-color);
}

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

/* Enhanced Pinterest-style Masonry Layout */
.gallery-grid {
    column-count: 4;
    column-gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
    border-radius: 16px;
    margin-bottom: 20px;
    break-inside: avoid;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px, rgba(0, 0, 0, 0.1) 0px 1px 2px;
    transition: box-shadow 0.2s ease;
    display: inline-block;
    width: 100%;
}

.gallery-item:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 20px, rgba(0, 0, 0, 0.1) 0px 6px 6px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.75s ease, filter 0.5s ease;
    vertical-align: middle;
}

.gallery-item img.thumbnail {
    opacity: 1;
    filter: blur(10px) brightness(0.9);
}

.gallery-item img.loaded {
    opacity: 1;
    filter: blur(0) brightness(1);
}

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

.gallery-item .download-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item .download-overlay::before {
    content: '↓';
    color: var(--primary-color);
    font-size: 18px;
}

.gallery-item:hover .download-overlay {
    opacity: 1;
}

.gallery-item .download-overlay:hover {
    background-color: var(--primary-color);
}

.gallery-item .download-overlay:hover::before {
    color: white;
}

/* Gallery Categories */
.gallery-categories {
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
    padding: 0 20px;
    max-width: 800px;
    flex-wrap: wrap;
}

.category-btn {
    background: none;
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    color: var(--dark-color);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Favorite styling */
.gallery-item.favorite {
    position: relative;
}

.gallery-item.favorite::after {
    content: '♥';
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    background-color: rgba(255, 107, 107, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.category-btn .count {
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    color: rgba(44, 44, 44, 0.7);
}

.category-btn[data-filter="favorite"].active .count {
    color: var(--light-color);
}

/* Enhanced Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.lightbox-controls {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    gap: 15px;
}

.lightbox-btn {
    background-color: rgba(212, 176, 140, 0.8);
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.lightbox-download {
    border-radius: 50px;
    width: auto;
    padding: 0 20px;
}

.lightbox-download::before {
    content: '↓';
    margin-right: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--light-color);
    font-size: 30px;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(212, 176, 140, 0.8);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.lightbox-prev, .lightbox-next {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--light-color);
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(212, 176, 140, 0.8);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: var(--light-color);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 18px;
}

.lightbox-btn.lightbox-favorite.active {
    background-color: #ff6b6b;
}

/* Responsive column counts */
@media (max-width: 1200px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
        padding: 0 10px;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
}

/* Moments Section (Updated) */
.moments {
    padding: 120px 0;
    background-color: var(--light-color);
    text-align: center;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.moment-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.moment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.moment-image {
    height: 250px;
    overflow: hidden;
}

.moment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.moment-content {
    padding: 25px;
    text-align: left;
}

.moment-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.moment-text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Wedding Video Section */
.video-section {
    padding: 120px 0;
    background-color: var(--light-color);
}

.video-section .section-header {
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
    max-width: 60%;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Downloads Section */
.downloads {
    padding: 120px 0;
    background-color: var(--light-color);
    text-align: center;
}

.downloads-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #555;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.download-folder {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-folder:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.folder-icon {
    width: 80px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.folder {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    clip-path: polygon(0% 20%, 30% 20%, 40% 0%, 100% 0%, 100% 100%, 0% 100%);
    transition: background-color 0.3s ease;
}

.download-folder:hover .folder {
    background-color: #c19b78;
}

.folder-title {
    margin-bottom: 5px;
    font-size: 20px;
    color: var(--dark-color);
}

.folder-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #c19b78;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .moments-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .video-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .moments-grid, .downloads-grid {
        grid-template-columns: 1fr;
    }
    .moment-image {
        height: 200px;
    }
}

/* Guestbook Section */
.guestbook {
    padding: 80px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.guestbook-intro {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.guestbook-form {
    max-width: 600px;
    margin: 0 auto 50px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

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

/* Status do formulário */
.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    font-size: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-status.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Controles de navegação */
.guestbook-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.nav-btn {
    background: rgba(212, 176, 140, 0.7);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.nav-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
    opacity: 0.5;
    transform: scale(1);
}

/* Container para o scroll horizontal */
.guestbook-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.guestbook-messages {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.guestbook-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.loading-messages {
    width: 100%;
    text-align: center;
    padding: 50px;
    color: #777;
    font-style: italic;
}

/* Estilo para cards de mensagem */
.message-card {
    flex: 0 0 auto;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.message-name {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.message-name::before {
    content: "❝";
    margin-right: 8px;
    font-size: 22px;
    color: var(--primary-color);
    opacity: 0.6;
}

.message-text {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-bottom: 25px;
}

.message-date {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 13px;
    color: #999;
    font-style: italic;
}

@media (max-width: 767px) {
    .message-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* Footer */
footer {
    padding: 80px 0 40px;
    text-align: center;
    background-color: var(--dark-color);
    color: var(--light-color);
}

.footer-title {
    font-size: 36px;
    color: var(--light-color);
    margin-bottom: 20px;
}

.heart {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0 10px;
}

.copyright {
    margin-top: 60px;
    font-size: 12px;
    color: #888;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(212, 176, 140, 0.8);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        flex-direction: column;
        background: var(--light-color);
        width: 100%;
        top: 70px;
        left: 0;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        height: auto;
        padding: 20px 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .hero h1 {
        font-size: 60px;
    }

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

    .moments-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .video-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }

    .moments-grid, .downloads-grid {
        grid-template-columns: 1fr;
    }

    .moment-image {
        height: 200px;
    }
}

/* Loading Spinner */
.spinner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(240, 233, 226, 0.7);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 176, 140, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-container.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Slideshow Button */
.slideshow-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slideshow-btn:hover {
    background-color: #c19b78;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.slideshow-btn::before {
    content: '▶';
    margin-right: 8px;
    font-size: 12px;
}

/* Slideshow Playing Indicator */
.lightbox.slideshow-active .lightbox-caption::after {
    content: ' (Slideshow Playing)';
    color: var(--primary-color);
    font-style: italic;
}

/* Gallery actions */
.gallery-actions {
    text-align: center;
    padding-bottom: 30px;
}

/* Portrait-oriented slideshow styles */
.lightbox.portrait-mode {
    background: rgba(0, 0, 0, 0.95);
}

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

.lightbox.portrait-mode .lightbox-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.3);
    transform: scale(1.1);
    z-index: -1;
}

.lightbox.portrait-mode img {
    max-height: 90vh;
    max-width: 85vw;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.lightbox.portrait-mode .lightbox-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1001;
}

.lightbox.portrait-mode .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1001;
    pointer-events: none;
}

.lightbox.portrait-mode .lightbox-prev,
.lightbox.portrait-mode .lightbox-next {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox.portrait-mode .lightbox-prev:hover,
.lightbox.portrait-mode .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
} 