.memory-album{padding-top:35px}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px 22px;align-items:center;margin-top:30px}.memory-photo{text-align:center}.memory-frame{padding:16px 12px;background:#ffe9b1;border-radius:37% 25% 32% 24%;min-height:280px;display:flex;justify-content:center;align-items:center}.memory-photo:nth-child(2) .memory-frame{background:#e5d8f6;transform:rotate(3deg)}.memory-photo:nth-child(3) .memory-frame{background:#cfe6db;transform:rotate(-3deg)}.memory-photo:nth-child(4) .memory-frame{background:#f7d4dd}.memory-frame img{width:auto;height:auto;max-width:100%;border:5px solid white;box-sizing:content-box;box-shadow:0 4px 10px #173e3b15}.compact-memory img{max-width:210px;max-height:235px}.memory-photo:nth-child(2) img{max-width:215px}.memory-photo figcaption{padding:20px 0 0}.memory-photo h3{font-size:20px;margin:0}.larger-memory{grid-column:1/-1;max-width:490px;justify-self:center;margin-top:16px}.larger-memory .memory-frame{background:#d2e9ef;border-radius:35% 25% 30% 20%;padding:24px}.larger-memory img{max-width:410px;width:100%;box-sizing:border-box;border-radius:10px}@media(max-width:950px){.memory-grid{grid-template-columns:repeat(2,1fr);gap:25px}.memory-frame{min-height:275px}}@media(max-width:540px){.memory-grid{grid-template-columns:1fr;gap:25px}.memory-photo{max-width:300px;justify-self:center;width:100%}.memory-frame{min-height:270px}.larger-memory{max-width:420px}.larger-memory img{max-width:100%}.memory-photo:nth-child(2) img{max-width:min(215px,90%)}.compact-memory img{max-width:min(210px,90%)}}
