h1 {
    line-height: 1.3;         /* Чуть плотнее, чем основной текст, для целостности */
    font-weight: 800;         /* Максимальная толщина (Extra Bold) */
    color: #333;           /* Наш проверенный темно-синий */
    text-align: center;       /* Центрирование обычно лучше для H1 */
    letter-spacing: -0.01em;  /* Для очень крупных букв можно чуть уменьшить зазор */
}

p{
	font-size: 20px; 
	font-weight: 500; 
}

.tac{
	text-align: center;
}

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

/* На мобильных (меньше 768px) уменьшаем размер, чтобы не разрывать слова */
@media (max-width: 768px) {
    h1 {
        font-size: 26px;
    }
	
	p{
		font-size: 18px; 
		font-weight: 500; 
		text-align: center;
	}
}
 
 .wrapper {
   margin-left: auto;
   margin-right: auto;
   width: 100%;
 }
 

@media screen and (max-width: 800px) {
	
	.gallery	
	{
	width:100vw!important;
	height:140vw!important;
	max-width:100vw!important;
	max-height:140vw!important;
	padding:10px 0px!important;
		
	}
	
}

/*.gallery	
	{
	width:33vw;
	height:46vw;
	float:left;
	max-width: 360px;
	max-height: 504px;
	padding:10px;
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box;    
	box-sizing: border-box;         
	
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
	border: none;
    background: #ffffff;
	}*/
.gallery-wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/*.gallery {
    width: 33vw;
    height: 46vw;
    max-width: 360px;
    max-height: 504px;
    padding: 10px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: none;
    background: #ffffff;
}*/	

.gallery {
    width: 50vw;
    height: 46vw;
    max-width: 500px;
    max-height: 707px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    background: #ffffff;
}

.gallery img{
	height: auto;
    width: auto;
    max-width: 100%;
    max-height: 80%;
}

/*---PAG---*/

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.nav-link {
    font-size: 18px;
    font-weight: bold;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

/* Для отключения клика на текущей странице */
.page-link.active {
    cursor: default;
    pointer-events: none;
}

/* Эффект наведения */
/*.page-link:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}*/

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
	font-size: 28px;
}

.page-link:hover {
    background-color: #e9e9e9;
    border-color: #bbb;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
	padding: 8px 16px;
}

.page-dots {
    padding: 0 8px;
    color: #666;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
    
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* Для центрирования без тега <center> */
.center-container {
    display: flex;
    justify-content: center;
    width: 100%;
}