/*Обнуление*/
* {
    padding: 0;
    margin: 0;
    border: 0;
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 100%;
    line-height: 1;
    font-size: 14px;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}


.text__h
{
    font-size: clamp(1.69rem, calc(0.830rem + 1.339vw), 2.44rem);
}
.text__middle
{
    font-size: clamp(1.06rem, calc(1.000rem + 0.313vw), 1.38rem);
}

.wrapper
{
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.main
{
    flex: 1 1 auto;
    /* background: rgb(202, 202, 202); */
}

/* ///////////////////////////////////// */



.gallery__background
{
/* background: #b4c7d9; */
/* background: linear-gradient(90deg,rgba(180, 199, 217, 1) 0%, rgba(232, 202, 218, 1) 15%, rgba(136, 103, 158, 1) 26%, rgba(168, 154, 141, 1) 58%, rgba(196, 213, 122, 1) 80%, rgba(218, 155, 113, 1) 100%, rgba(202, 65, 204, 1) 93%); */


}
.gallery__box
{
    /* background: white; */
    /* background: #2A7B9B; */

}
.gallery__line
{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;

    box-shadow: -10px -9px 8px 12px rgb(155 155 155 / 32%);
    border-radius: 30px;
    background: white;
}

.gallery__item
{
    margin-top: 3%;
    display: flex;
    flex: 0 0 45%;
    margin: 2% 0%;
    flex-direction: column;
    min-height: 5%;
    /* background: rgb(145, 145, 145); */
    min-height: 20px;

    justify-content: center;
    align-items: center;

    
}
.gallery__pic
{
    max-width: 100%;
}
.gallery__img
{
    border-radius: 10px;
    width: 100%;

     box-shadow: -7px -4px 9px 5px rgb(78 189 189 / 32%);
}
.gallery__img img
{
    border-radius: 10px;
    width: 100%;
}










/* модалка для галереи начало */
/* Курсор-указатель для изображений галереи */
.gallery__img img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery__img img:hover {
    transform: scale(1.02);
}

/* Стили модального окна */
.modal {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Полупрозрачный чёрный фон */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Класс для отображения модалки */
.modal.active {
    display: flex;
    opacity: 1;
}

/* Изображение внутри модалки */
.modal__content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal__content {
    transform: scale(1);
}

/* Кнопка закрытия (крестик) */
.modal__close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.modal__close:hover,
.modal__close:focus {
    color: #bbb;
}
/* модалка для галереи конец */

/* .titlea__description
{
    display: flex;
    padding: 2% 5%;
    margin: 2% 0%;
    border-left: 3px solid rgba(219, 131, 0, 0.363);
    background: #f5e4c4;
    border-radius: 10px;
    border: 1px solid black;
}
.titlea__description p
{
    text-align: center;
    letter-spacing: 1px;
}
.titlea__description span
{
    text-align: center;
    display: flex;
} */


@container(max-width: 756px)
{
    .gallery__line
    {
      box-shadow: -1px -1px 8px 12px rgb(155 155 155 / 32%);
    }
    .gallery__img
    {
     box-shadow: -2px -2px 5px 4px rgb(78 189 189 / 32%);
    }
}