﻿/* === Grid yapısı === */
.gallery {
    margin-bottom: 20px;
}
.gallery-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    text-align: center;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.gallery-item:hover {
    transform: scale(1.03);
}
.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}
.gallery-item p {
    margin: 15px 0 5px;
    font-weight: bold;
    color: #333;
}


/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    max-width: 800px;
    width: 90%;
    text-align: center;
    color: #fff;
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.modal-content img {
    max-width: 100%;
    max-height: 60vh;
    margin-bottom: 15px;
    border-radius: 10px;
    object-fit: contain;
}

.modal-content h3 {
    margin: 10px 0;
    font-size: 22px;
    font-weight: 600;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin: 10px 0 0;
    white-space: pre-line; /* açıklama satır atlamalarını korur */
}

/* === Kapat butonu === */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #000;
    font-size: 35px;
    cursor: pointer;
}

/* === Önceki / Sonraki butonları === */
.modal-nav {
    margin-top: 15px;
}
.modal-nav button {
    background: rgba(255,255,255,0.15);
    border: 1px solid #000;
    color: #000;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.modal-nav button:hover {
    background: rgba(255,255,255,0.3);
}