/* Nişan Hero Section */
.nisan-hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0,0,0,0.6)), url('../images/wedding-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px 20px 40px;
}

.nisan-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nisan-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.nisan-hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nisan-details {
    padding: 60px 20px;
    background-color: #fff;
}

.nisan-info {
    max-width: 1200px;
    margin: 0 auto;
}

.nisan-info h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .nisan-hero {
        height: auto;
        min-height: 60vh;
        padding: 80px 15px 40px;
    }

    .nisan-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .nisan-hero p {
        font-size: 1rem;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .nisan-details {
        padding: 40px 15px;
    }
    
    .nisan-info h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    height: 85vh;
}

.modal-content {
    position: relative;
    background-color: transparent;
    height: 100%;
    border-radius: 6px;
    animation: modalOpen 0.3s ease-out;
}

.modal-header {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 1;
    padding: 15px;
    border: none;
}

.modal-body {
    height: 100%;
    padding: 0;
}

.modal-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close {
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.close:hover {
    color: #ddd;
}

/* Mobil Cihazlar için Optimizasyon */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-dialog {
        margin: 10px auto;
        height: 90vh;
    }

    .modal-header {
        top: -35px;
        right: -5px;
    }

    .close {
        font-size: 35px;
        padding: 10px;
    }

    .modal-body img {
        object-fit: contain;
        max-height: 90vh;
    }
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
