// Styling for the portfolio section #portfolio { .portfolio-item { margin: 0 0 15px; right: 0; .portfolio-link { cursor: pointer; display: block; position: relative; max-width: 400px; margin: 0 auto; .portfolio-hover { background: fade-out($theme-primary, .1); position: absolute; width: 100%; height: 100%; opacity: 0; transition: all ease 0.5s; -webkit-transition: all ease 0.5s; -moz-transition: all ease 0.5s; &:hover { opacity: 1; } .portfolio-hover-content { position: absolute; width: 100%; height: 20px; font-size: 20px; text-align: center; top: 50%; margin-top: -12px; color: white; i { margin-top: -12px; } h3, h4 { margin: 0; } } } } .portfolio-caption { max-width: 400px; margin: 0 auto; background-color: white; text-align: center; padding: 25px; h4 { text-transform: none; margin: 0; } p { @include serif-font; font-style: italic; font-size: 16px; margin: 0; } } } * { z-index: 2; } } @media(min-width:767px) { #portfolio { .portfolio-item { margin: 0 0 30px; } } } .portfolio-modal { .modal-dialog { margin: 0; height: 100%; max-width: none; } .modal-content { border-radius: 0; background-clip: border-box; -webkit-box-shadow: none; box-shadow: none; border: none; min-height: 100%; padding: 100px 0; text-align: center; h2 { margin-bottom: 15px; font-size: 3em; } p { margin-bottom: 30px; } p.item-intro { margin: 20px 0 30px; @include serif-font; font-style: italic; font-size: 16px; } ul.list-inline { margin-bottom: 30px; margin-top: 0; } img { margin-bottom: 30px; } button { cursor: pointer; } } .close-modal { position: absolute; width: 75px; height: 75px; background-color: transparent; top: 25px; right: 25px; cursor: pointer; &:hover { opacity: 0.3; } .lr { height: 75px; width: 1px; margin-left: 35px; background-color: $gray-darker; transform: rotate(45deg); -ms-transform: rotate(45deg); /* IE 9 */ -webkit-transform: rotate(45deg); /* Safari and Chrome */ z-index: 1051; .rl { height: 75px; width: 1px; background-color: $gray-darker; transform: rotate(90deg); -ms-transform: rotate(90deg); /* IE 9 */ -webkit-transform: rotate(90deg); /* Safari and Chrome */ z-index: 1052; } } } .modal-backdrop { opacity: 0; display: none; } }