
/* Фото и текст в одной карточке */
.photo-block {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.photo-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Фото */
.photo-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.photo-card figcaption p {
    margin: 8px 0;
    text-align: justify;
    line-height: 1.5;
}

.photo-card figcaption strong {
    color: #222;
}

.photo-card figcaption ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 8px 0;
}

.photo-card figcaption ul li {
    margin: 4px 0;
}

.photo-card figcaption a {
    color: #1a73e8;
    text-decoration: none;
}

.photo-card figcaption a:hover {
    text-decoration: underline;
}


/* Lightbox (если не в photos.css) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Адаптивность */
@media (max-width: 600px) {
    .photo-card {
        padding: 15px;
    }

    .photo-card figcaption {
        font-size: 15px;
    }

    h1 {
        font-size: 1.6em;
    }
}