.feed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.feed-event {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    margin-bottom: 40px;
    overflow: hidden;
}

.feed-event-date {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 10px;
}

.feed-event-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.feed-event-details-name {
    font-size: 28px;
    font-weight: bold;
    max-width: 600px;
    line-height: 1.5;
}

.feed-event-details-btn {
    width: auto;
    padding: 12px 24px;
    white-space: nowrap;
}

.feed-list {
    margin-top: 40px;
}

.feed-list-title {
    font-size: 24px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif !important;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.feed-list-item {
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.feed-list-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.feed-list-item-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.feed-list-item-btn:hover {
    background: #FF55AB;
}

/* Стили для альбома */

.album-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.album-photo-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s;
}

.album-photo-item:hover {
    transform: scale(1.05);
}

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

.album-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.album-photo-item:hover .album-photo-overlay {
    transform: translateY(0);
}

.album-photo-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.album-photo-description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .feed-event {
        height: 300px;
        padding: 20px;
    }

    .feed-event-details-name {
        font-size: 24px;
    }

    .album-photos {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .album-photo-item {
        height: 250px;
    }

    .feed-header > a > button {
        width: 100% !important;
    }

    .feed-header > a {
        width: 100% !important;
    }

    .feed-event-details-btn {
        width: 100% !important;
    }

    .feed-event-details > a {
        width: 100%;
    }
}

/* Стили для модального окна просмотра фото */
.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.photo-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.photo-viewer-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.photo-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-viewer-nav {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 1002;
}

.photo-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.photo-viewer-prev {
    margin-right: 20px;
}

.photo-viewer-next {
    margin-left: 20px;
}

.photo-viewer-image-container {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-viewer-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.photo-viewer-info {
    margin-top: 20px;
    text-align: center;
    color: white;
    max-width: 600px;
}

.photo-viewer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.5;
}

.photo-viewer-description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.album-photo-title {
    line-height: 1.5;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .photo-viewer-content {
        flex-direction: column;
        max-width: 95vw;
        max-height: 95vh;
    }

    .photo-viewer-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .photo-viewer-prev {
        left: 10px;
    }

    .photo-viewer-next {
        right: 10px;
    }

    .photo-viewer-close {
        top: 10px;
        right: 10px;
    }

    .photo-viewer-image {
        max-height: 60vh;
    }

    .photo-viewer-info {
        margin-top: 15px;
        padding: 0 20px;
    }

    .photo-viewer-title {
        font-size: 16px;
    }

    .photo-viewer-description {
        font-size: 13px;
    }
}
