8,957
edits
No edit summary |
No edit summary |
||
Line 123: | Line 123: | ||
/* Стиль для контейнера изображения с рамкой и подписью */ | /* Стиль для контейнера изображения с рамкой и подписью */ | ||
.photo-frame { | .photo-frame { | ||
display: inline-block; | display: inline-block; | ||
text-align: center; | text-align: center; | ||
margin: | margin: 5px; | ||
opacity: 0; | |||
opacity: 0; | animation: fadeIn 1s ease forwards; | ||
} | |||
@keyframes fadeIn { | |||
from { opacity: 0; transform: translateY(10px);} | |||
to { opacity: 1; transform: translateY(0);} | |||
} | } | ||
/* | /* Внешняя рамка вокруг фото */ | ||
.photo-border { | |||
display: inline-block; | |||
padding: 12px 24px 12px 24px; /* Тонкие верх/низ, широкие бока */ | |||
border-left: 18px solid #d02019; | |||
border-right: 18px solid #d02019; | |||
border-top: 8px solid #d02019; | |||
border-bottom: 8px solid #d02019; | |||
border-radius: 18px; | |||
background: none; | |||
transition: | |||
box-shadow 0.3s cubic-bezier(.22,1,.36,1), | |||
transform 0.3s cubic-bezier(.22,1,.36,1), | |||
padding 0.3s cubic-bezier(.22,1,.36,1); | |||
} | |||
.photo-border:hover { | |||
box-shadow: 0 9px 32px rgba(150,20,20,0.17), 0 2px 16px rgba(0,0,0,0.08); | |||
transform: scale(1.04) translateY(-3px); | |||
padding: 16px 30px 16px 30px; | |||
border-width: 11px 24px 11px 24px; | |||
} | |||
/* Само изображение */ | |||
.photo-border img, | |||
.photo-img { | |||
display: block; | |||
max-width: 150px; | |||
max-height: 225px; | |||
width: auto; | |||
height: auto; | |||
object-fit: contain; /* Фото не обрезается, а вписывается */ | |||
border: none; | |||
background: #222; /* Можно убрать, если не нужно */ | |||
border-radius: 10px; | |||
transition: box-shadow 0.3s; | |||
} | } | ||
.caption { | |||
. | margin-top: 9px; | ||
background: #181217; | |||
color: #e0a6b4; | |||
font-size: 1.08em; | |||
padding: 8px 0 7px 0; | |||
border-radius: 0 0 15px 15px; | |||
border-bottom: 5px solid #d02019; | |||
width: 90%; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | } | ||
/* Эффект при наведении */ | /* Эффект при наведении */ |