@font-face {  
	font-family: 'LogoFont';  
	src: url('/css/fonts/Hello_January_script_cyrillic_Script.otf') format('opentype');  
}

@font-face {  
	font-family: 'PFont';  
	src: url('/css/fonts/ZTNeueRalewe-Bold.ttf') format('truetype');  
}

@font-face {  
	font-family: 'PaFont';  
	src: url('/css/fonts/ZTNeueRalewe-Medium.ttf') format('truetype');  
}

:root {
    --primary: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --danger: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f1e2;
	padding-top: 158px;
	padding-bottom: 50px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

main.container .admin-container {
    max-width: 1200px;
    padding: 21px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(253px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
/* Шапка */
header {
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -9px 19px rgba(0, 0, 0, 1.1);
    background: url("/assets/images/style/bg-logo-2.jpg") repeat-x;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 10;
	width: 100%;
}

header h1 {
    font-size: 1.8rem;
}

header .container img {
	margin: 15px 0 -15px 0;
	filter: invert(48%) sepia(13%) saturate(3207%) hue-rotate(341deg) brightness(59%) contrast(80%);
}

nav {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
	margin-top: 50px;
}

.photo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;

}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.photo-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.photo-info h3 {
    margin-bottom: 0.5rem;
	font-family: 'PaFont', sans-serif;
}

.photo-info p {
	font-family: 'PFont', sans-serif;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Фиксированная высота контейнера */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем изображение с сохранением пропорций */
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-wrapper img {
    transform: scale(1.05); /* Легкий эффект увеличения при наведении */
}

.price {
    /* color: var(--primary); */
	color: #b18359;
    font-weight: bold;
    font-size: 1.1rem;
}

div .photo-price {
	display: flex;
    height: -webkit-fill-available;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-end;
    align-items: flex-start;
}

/* Лайтбокс */
/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
    display: flex;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-photo {
    flex: 2;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-photo img {
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
}

.lightbox-info {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.lightbox-info h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.8rem;
}

.lightbox-details {
    margin: 20px 0;
}

.lightbox-details p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}

.lightbox-details strong {
    color: #333;
}

.lightbox-order-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4361ee;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lightbox-order-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
	body {
		background: #d7cfb4;
	}
	header {
		margin: 0;
	}
	header div.container img {
		text-align: center;
		max-height: 140px;
		max-width: 90%;
		margin-top: 20px;
	}
	.container {
		margin: -25px auto 0 auto;
	}
	
	.gallery {
		margin-top: 30px;
	}
	
    .lightbox-content {
        flex-direction: column;
        max-height: 90vh;
    }
    
    .lightbox-photo {
        height: auto;
        background: black;
    }
	.lightbox-info {
		padding: 1rem 2rem;
	}
	.lightbox-info h2 {
		line-height: 0.85;
		font-size: 1.2rem;
        margin-top: -6px;
	}
	.lightbox-info hr {
		margin: 5px 0 -15px 0;
	}
	.lightbox-details {
		line-height: 0.5;
	}
	.lightbox-order-btn {
		padding: 2px 24px;
		width: -webkit-fill-available;
		text-align: center;
		height: 32px;
		margin-top: -2px;
	}
	p.viewlikes {
		position: absolute;
		right: 32px;
		margin-top: -35px;
	}
	footer {
		height: 3rem;
		align-content: center;
		background: url(/assets/images/style/bg-logo-2.jpg) repeat-x;
		padding-top: 23px;
	}
	footer div.container p {
		text-align: center;
	}
}

.order-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    width: 100%;
}

.photo-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #666;
}

.photo-likes {
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
}

.photo-likes.active {
    color: #e53935;
}

.photo-likes:hover {
    color: #e53935;
}

.photo-likes.liked {
    color: #e53935;
    animation: heartBeat 0.5s;
}

.photo-likes.animate {
    animation: heartBeat 0.5s;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: #ccc;
    transition: color 0.3s;
}

.like-btn.active {
    color: #e53935;
}

.like-btn .like-icon {
    font-size: 1.2em;
    transition: transform 0.3s;
}

.like-btn.animate .like-icon {
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #2980b9;
}

.pagination-btn.prev::before {
    content: '← ';
}

.pagination-btn.next::after {
    content: ' →';
}

/* Скрываем пагинацию если она не нужна */
.pagination:empty {
    display: none;
}

/* Добавить плавные переходы */
.photo-card, .view-btn, .like-btn, .pagination-btn {
    transition: all 0.3s ease;
}

/* Улучшить адаптивность галереи */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Order Page Styles */
.order-page {
    padding: 40px 0;
    min-height: 70vh;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--dark);
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.order-photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    align-self: start;
}

.photo-preview {
    height: 300px;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.order-photo-card:hover .photo-preview img {
    transform: scale(1.03);
}

.photo-details {
    padding: 20px;
}

.photo-details h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    color: var(--dark);
}

.detail-value.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.order-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.has-error input,
.has-error textarea {
    border-color: var(--danger);
}

.error-message {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

.alert.success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-preview {
        height: 250px;
    }
}
footer {
	height: 3rem;
	align-content: center;
	background: url(/assets/images/style/bg-logo-2.jpg) repeat-x;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 1.1);
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	width: 100%;
}
footer div.container p {
	text-align: center;
	font-weight: bold;
	color: sienna;
}