


/* Стили для изображений на странице */
.article-image {
    cursor: pointer;
    transition: transform 0.3s;
    max-width: 100%;
    display: block;
}

.article-image:hover {
    transform: scale(1.02);
}

.landscape-img {
    /* Дополнительные стили для альбомных изображений */
    max-width: 600px;
    width: 100%;
    height: auto;
}

.portret-img {
    /* Дополнительные стили для портретных изображений */
    max-height: 400px;
    height: auto;
    width: auto;
}


/* Стили для фотогалереи */
.photogallery .landscape-img {
    /* Дополнительные стили для альбомных изображений */
    width: 200px;
    height: auto;
}

.photogallery  .portret-img {
    /* Дополнительные стили для портретных изображений */
    width: 200px;
}


.photogallery{
  display:inline-block; margin: 20px;
}

/* Стили для полноэкранной галереи */
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.fullscreen-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.nav-btn {
    position: fixed;
    top: 90%;
    transform: translateY(-50%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fullscreen-gallery {
    animation: fadeIn 0.3s ease-out;
}