/* Верхняя панель страницы */
.page-header { 
    background: linear-gradient(135deg, #1a237e, #283593); 
    color: white; 
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header-content { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home { 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white; 
    text-decoration: none; 
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.back-home:hover { 
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.page-title { 
    font-size: 20px; 
    font-weight: bold;
}

/* Контент страницы */
.page-container { 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

.content-title { 
    color: #1a237e; 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 3px solid #1a237e; 
    font-size: 32px;
}

.page-content { 
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 16px; 
    line-height: 1.8; 
    margin-bottom: 40px;
}

.page-content h1 { 
    color: #1a237e; 
    font-size: 28px; 
    margin: 25px 0 15px 0; 
}

.page-content h2 { 
    color: #283593; 
    font-size: 24px; 
    margin: 20px 0 12px 0; 
}

.page-content p { 
    margin-bottom: 15px; 
}

/* ====== СЕКЦИЯ ФОТОГРАФИЙ ====== */
.photos-section {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid #eee;
}

.photos-title {
    color: #1a237e;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.photo-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.photo-info {
    padding: 15px;
}

.photo-title {
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 8px;
    font-size: 16px;
}

.photo-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.photo-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Кнопки */
.action-buttons { 
    display: flex; 
    gap: 15px; 
    margin-top: 40px; 
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.btn { 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px; 
    border: none;
    border-radius: 5px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary { 
    background: #1a237e; 
    color: white; 
}

.btn-primary:hover { 
    background: #283593; 
}

.btn-photo {
    background: #4CAF50;
    color: white;
}

.btn-photo:hover {
    background: #45a049;
}

/* Админ панель */
.admin-panel { 
    background: #4CAF50; 
    color: white; 
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-panel-content { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel a { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

.admin-panel a:hover { 
    background: rgba(255,255,255,0.2); 
}

.logout-btn { 
    background: #ff4444; 
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-header-content { flex-direction: column; gap: 10px; text-align: center; }
    .page-content { padding: 20px; }
    .content-title { font-size: 24px; }
    .action-buttons { flex-direction: column; }
    .photos-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (max-width: 480px) {
    .photos-grid { grid-template-columns: 1fr; }
}