/* 
 * Wedding Gallery Page Styles
 * A beautiful, responsive gallery page for wedding photos
 */

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #5A5A5A;
    background-color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* Header Section */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: #3A3A3A;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.gallery-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #5A5A5A;
    line-height: 1.6;
}

/* Upload Button */
.upload-button-container {
    text-align: center;
    margin-bottom: 60px;
}

.upload-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #D4B0A5, #9E8174);
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(158, 129, 116, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.upload-button:hover {
    background: linear-gradient(135deg, #C19F93, #8D7267);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(158, 129, 116, 0.3);
}

.upload-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(158, 129, 116, 0.2);
}

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

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

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

.gallery-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Upload Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: #3A3A3A;
    margin-bottom: 30px;
}

.modal-options {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.modal-option {
    flex: 1;
    max-width: 300px;
    padding: 30px 20px;
    border-radius: 6px;
    background: #F9F7F5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-option:hover {
    background: #EFE9E5;
    transform: translateY(-3px);
}

.modal-option-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: #9E8174;
}

.modal-option-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #5A5A5A;
}

.modal-cancel {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #9E8174;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.modal-cancel:hover {
    color: #8D7267;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #FFFFFF;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

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

.lightbox-prev,
.lightbox-next {
    color: #FFFFFF;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .gallery-title {
        font-size: 36px;
    }
    
    .gallery-subtitle {
        font-size: 16px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .container {
        padding: 40px 20px;
    }
    
    .gallery-title {
        font-size: 28px;
    }
    
    .gallery-subtitle {
        font-size: 14px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 15px;
    }
    
    .upload-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-options {
        flex-direction: column;
    }
    
    .modal-option {
        padding: 20px;
    }
}



/* QR Code Section */
.qr-code-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px 20px;
    background-color: #F9F7F5;
    border-radius: 8px;
}

.qr-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    color: #3A3A3A;
    margin-bottom: 15px;
}

.qr-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #5A5A5A;
    max-width: 500px;
    margin: 0 auto 30px;
}

.qr-code-container {
    display: inline-block;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.qr-code-container img {
    max-width: 200px;
    height: auto;
}

/* Responsive styles for QR code section */
@media (max-width: 767px) {
    .qr-code-section {
        margin: 40px 0;
        padding: 30px 15px;
    }
    
    .qr-title {
        font-size: 24px;
    }
    
    .qr-description {
        font-size: 14px;
    }
    
    .qr-code-container img {
        max-width: 150px;
    }
}

