.gallery { padding: 30px 20px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: flex-start; margin: 0 auto; max-width: var(--max_width-content); } .block__gallery { flex: 1 1 calc(23.33% - 30px); } .block__gallery-author { font-size: 16px; line-height: 20px; text-transform: uppercase; letter-spacing: 2px; display: flex; gap: 10px; padding-bottom: 5px; font-weight: 600; } .block__gallery-author-name { font-weight: 300; } .block__gallery-public { padding-top: 5px; text-transform: uppercase; font-weight: 600; color: rgba(0, 0, 0, 0.54); } .block__gallery { display: inline-block; overflow: hidden; transition: transform 0.3s ease; } .block__gallery-img { height: 215px; transition: transform 0.5s ease; } .block__gallery:hover .block__gallery-img { transform: scale(1.1); /* Увеличение на 10% */ } @keyframes zoom { from {transform: translate(-50%, -50%) scale(0.5)} to {transform: translate(-50%, -50%) scale(1)} } .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0); overflow: hidden; opacity: 0; transition: opacity 0.3s ease, background-color 0.3s ease; } .modal.open { display: flex; align-items: center; justify-content: center; opacity: 1; background-color: rgba(0,0,0,0.9); } .modal-content { max-width: 90vw; max-height: 90vh; transform: scale(0.8); opacity: 0; transition: all 0.3s ease 0.1s; } .modal.open .modal-content { transform: scale(1); opacity: 1; } .close { position: absolute; top: 25px; right: 25px; color: white; font-size: 35px; cursor: pointer; opacity: 0; transition: opacity 0.2s ease 0.2s; } .modal.open .close { opacity: 1; }