body.index { // === Work === // .work { position: relative; } .work-item { position: relative; z-index: 1; overflow: hidden; width: 100%; @include aspect-ratio(4,3); &:hover img { transition: transform .4s; transform: scale(1.04); } } .work-item .inner { display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: 0px; z-index: 6; } .work-item .overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 7; } .work-item img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; transition: transform .4s; } .work-item h2 { font-size: 24px; line-height: 36px; font-weight: bold; position: absolute; top: 10px; left: 10px; height: 40px; padding: 2px 6px; letter-spacing: 0px; text-transform: uppercase; // color: #000000; color: #ffffff; } .work-item p { font-size: 16px; line-height: 1.32em; position: absolute; top: 60px; left: 10px; max-width: 80%; max-width: 340px; padding: 4px 6px; letter-spacing: .04em; color: #444; background-color: #ffffff; // @include monospace(); } .work-more { font-size: 14px; line-height: 60px; font-weight: bold; display: block; float: left; width: 100%; height: 60px; text-align: center; letter-spacing: .1em; text-transform: uppercase; color: white; background-color: black; @include monospace(); &:hover { background-color: white; color: black; } } @media (min-width: 800px) { .work { zoom: 1; &::before, &::after { display: table; content: ""; } &::after { clear: both; } } .work .work-item { float: left; width: 50%; } } // == About == // .about { padding: 0px 0 120px 0; // border-top: solid #f5f5f5 8px; } .about .portrait img { width: 100%; margin-bottom: 80px; } @media (min-width: 800px) { .about { overflow: auto; zoom: 1; max-width: 1440px; margin: 0 auto; &::before, &::after { display: table; content: ""; } &::after { clear: both; } } } .about .row { padding: 0 160px; } .about h2 { font-size: 38px; line-height: 44px; margin-bottom: 30px; } .about .bio { margin-bottom: 30px; column-count: 2; column-gap: 60px; } .about .bio p { font-size: 16px; line-height: 32px; padding-bottom: 12px; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; @include monospace(); } .about .bio p a { font-weight: bold; } .about-contact { font-size: 16px; line-height: 32px; @include monospace(); &:hover { font-weight: bold; } } .about-contact span { font-weight: bold; } // Insta Feed .insta-feed { overflow: hidden; margin-top: 40px; background-color: #ffffff; } .insta-feed .insta-item { display: block; float: left; overflow: hidden; width: 16.6666667%; // padding: 6px; transition: opacity .2s; &:hover { transition: opacity .2s; opacity: .7; } } .insta-feed .insta-item img { overflow: hidden; width: 100%; } @media (min-width: 800px) { .insta-feed { overflow: auto; zoom: 1; // max-width: 1212px; // margin: 0 auto; &::before, &::after { display: table; content: ""; } &::after { clear: both; } } } } @keyframes rotate-in { 0% { -webkit-transform: translateZ(-20px) rotateX(90deg); -moz-transform: translateZ(-20px) rotateX(90deg); -ms-transform: translateZ(-20px) rotateX(90deg); -o-transform: translateZ(-20px) rotateX(90deg); transform: translateZ(-20px) rotateX(90deg); opacity: 0; } 60% { -webkit-transform: translateZ(-20px) rotateX(-10deg); -moz-transform: translateZ(-20px) rotateX(-10deg); -ms-transform: translateZ(-20px) rotateX(-10deg); -o-transform: translateZ(-20px) rotateX(-10deg); transform: translateZ(-20px) rotateX(-10deg); opacity: 1; } 100% { -webkit-transform: translateZ(-20px) rotateX(0); -moz-transform: translateZ(-20px) rotateX(0); -ms-transform: translateZ(-20px) rotateX(0); -o-transform: translateZ(-20px) rotateX(0); transform: translateZ(-20px) rotateX(0); opacity: 1; } }