.gallery{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 0 40px;width:100%}.gallery__item{border:1px solid #e5e5e5;margin:0 10px 10px 0;overflow:hidden;position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:calc(16.66667% - 8.33333px)}.gallery__item:nth-child(6n){margin-right:0}.gallery__item:active,.gallery__item:focus,.gallery__item:hover{-webkit-box-shadow:0 0 8px rgba(0,0,0,.15);box-shadow:0 0 8px rgba(0,0,0,.15)}.gallery__item--video{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#000;border:none;display:-webkit-box;display:-ms-flexbox;display:flex}.gallery__item--video:before{background:rgba(0,0,0,.5);border-radius:50%;height:56px;margin:-28px 0 0 -28px;-webkit-transition:all .2s ease;transition:all .2s ease;width:56px}.gallery__item--video:after,.gallery__item--video:before{content:"";display:block;left:50%;pointer-events:none;position:absolute;top:50%}.gallery__item--video:after{border-color:transparent transparent transparent #fff;border-style:solid;border-width:13px 0 13px 26px;height:0;margin:-13px 0 0 -10px;width:0}.gallery__item--video:active:before,.gallery__item--video:focus:before,.gallery__item--video:hover:before{background:#000}.gallery__item--video .gallery__link{display:inline-block;height:auto;padding:0}.gallery__item--video .gallery__desc{display:none}.gallery__link{display:block;height:0;overflow:hidden;padding-bottom:100%;width:100%}.gallery__link img{max-width:100%}.gallery__desc{display:block;font-size:.9rem;padding:5px;text-align:center}.gallery--sidebar .gallery__item{width:calc(33.33333% - 6.66667px)}.gallery--sidebar .gallery__item:nth-child(6n){margin-right:10px}.gallery--sidebar .gallery__item:nth-child(3n){margin-right:0}@media only screen and (max-width:900px){.gallery__item{width:calc(20% - 8px)}.gallery__item:nth-child(6n){margin-right:10px}.gallery__item:nth-child(5n){margin-right:0}}@media only screen and (max-width:700px){.gallery__item{width:calc(25% - 7.5px)}.gallery__item:nth-child(5n){margin-right:10px}.gallery__item:nth-child(4n){margin-right:0}}@media only screen and (max-width:500px){.gallery__item{width:calc(33.33333% - 6.66667px)}.gallery__item:nth-child(4n){margin-right:10px}.gallery__item:nth-child(3n){margin-right:0}}@media only screen and (max-width:350px){.gallery__item{width:calc(50% - 5px)}.gallery__item:nth-child(3n){margin-right:10px}.gallery__item:nth-child(2n){margin-right:0}}