body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(78, 205, 196, 0.08) 0%, transparent 50%);
    animation: subtleFloat 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.gallery-hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 100px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 50px;
    filter: blur(20px);
    animation: gentleGlow 4s ease-in-out infinite;
}

.gallery-hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: #8b6f47;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

.gallery-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    animation: underlineGrow 2s ease-in-out infinite;
}

.gallery-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #666;
    animation: fadeInUp 1s ease 0.2s both;
}

.gallery-section { 
    padding: 60px 0; 
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInScale 0.8s ease forwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }
.gallery-item:nth-child(13) { animation-delay: 1.3s; }

.gallery-item.large { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.gallery-item.large img { height: 730px; }
.gallery-item.wide img { height: 300px; }

.gallery-item:hover img { 
    transform: scale(1.05);
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 120px;
    background: rgba(255, 107, 53, 0.12);
    border-radius: 60px;
    filter: blur(25px);
    animation: gentleGlow 5s ease-in-out infinite;
}

.cta-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #8b6f47;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    animation: underlineGrow 2.5s ease-in-out infinite;
}

.cta-section p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-btn {
    background: linear-gradient(45deg, #c7af9b, #d4c2a8);
    color: #8b6f47;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 175, 155, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(199, 175, 155, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal.active .modal-content { 
    transform: scale(1); 
}

.modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover { 
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav:hover { 
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.05);
}
.prev { left: 20px; }
.next { right: 20px; }

@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5px, -5px); }
}

@keyframes gentleGlow {
    0%, 100% { 
        opacity: 0.8; 
        box-shadow: 0 0 20px rgba(199, 175, 155, 0.2);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 30px rgba(199, 175, 155, 0.3);
    }
}

@keyframes underlineGrow {
    0%, 100% { width: 80px; opacity: 0.7; }
    50% { width: 120px; opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .gallery-item.wide { grid-column: span 1; }
}

@media (max-width: 768px) {
    .gallery-hero h1 { font-size: 3rem; }
    .gallery-hero p { font-size: 1rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; padding: 0 10px; }
    .gallery-item.large, .gallery-item.wide { grid-column: span 1; grid-row: span 1; }
    .gallery-item img, .gallery-item.large img, .gallery-item.wide img { 
        height: 300px; 
        object-fit: cover;
        object-position: center;
    }
    .cta-section h2 { font-size: 2.5rem; }
    .nav { font-size: 24px; padding: 10px 15px; }
    .prev { left: 10px; }
    .next { right: 10px; }
}

@media (max-width: 480px) {
    .gallery-hero { padding: 80px 0 60px; }
    .gallery-hero h1 { font-size: 2.5rem; }
    .gallery-section, .cta-section { padding: 40px 0; }
    .cta-section h2 { font-size: 2rem; }
}