.content-section {
    display: block;
}

/* Ümumi bölmə */
#section-foto-qalereya {
    text-align: center;
    background-color: #fff;
    padding: 50px 0;
}

.foto-heading {
    font-size: 20px;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Məlumat hissəsi */
.foto-gallery-info h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.foto-gallery-info p {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
}

/* Qalereya grid */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.foto-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* Hover overlay */
.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.foto-item:hover .foto-overlay {
    opacity: 1;
}

.foto-overlay span {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a4d;
}


/* details */
.gallery-section {
    text-align: center;
    padding: 30px 20px;
}

.gallery-title {
    font-size: 1.5em;
    color: #1a1a4d;
    margin-bottom: 5px;
}

.gallery-date {
    color: #777;
    font-size: 0.95em;
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    justify-items: center;
}

.gallery-grid img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    opacity: 0.8;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.modal-content img {
    object-fit: cover;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ccc;
}

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

.prev,
.next {
    cursor: pointer;
    color: #fff;
    font-size: 50px;
    padding: 0 20px;
    user-select: none;
    transition: color 0.3s;
}

.prev:hover,
.next:hover {
    color: #ccc;
}
