﻿.categoryGallery {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 15px 0;
  background-color: #fafafa;
  padding-bottom: 30px; }
  .categoryGallery a {
    position: relative;
    -webkit-transition: 0.3s;
    transition: 0.3s; }
    .categoryGallery a:hover {
      -webkit-transform: translateY(-10px);
              transform: translateY(-10px);
      -webkit-box-shadow: 0px 0 8px 0 #d5d5d5;
              box-shadow: 0px 0 8px 0 #d5d5d5; }
      .categoryGallery a:hover img {
        -webkit-filter: brightness(50%);
                filter: brightness(50%); }
    @media (max-width: 780px) {
      .categoryGallery a {
        width: calc(50% - 20px); } }
  .categoryGallery__line {
    width: calc(100% - 15px);
    border-bottom: 4px solid white;
    position: relative;
    bottom: 5px; }
  .categoryGallery__name {
    position: absolute;
    bottom: 10px;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    width: 100%;
    text-align: right;
    padding: 30px 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-bottom: 40px;
    border-radius: 0 0 10px 10px; }
    .categoryGallery__name h2 {
      text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
      -webkit-transition: 0.3s;
      transition: 0.3s;
      white-space: nowrap;
      color: white;
      font-size: 22px;
      font-weight: 600;
      padding: 0 15px;
      line-height: 20px;
      margin: 0; }
    @media (max-width: 780px) {
      .categoryGallery__name {
        padding: 15px 5px;
        padding-top: 30px;
        width: calc(100% - 20px); }
        .categoryGallery__name h2 {
          font-size: 14px;
          white-space: unset;
          padding: 0 5px;
          min-width: 110px; } }
  .categoryGallery__image {
    margin: 15px 20px;
    overflow: hidden;
    -webkit-transition: 0.3s;
    transition: 0.3s; }
    @media (max-width: 780px) {
      .categoryGallery__image {
        margin: 10px; } }
    .categoryGallery__image img {
      -webkit-transition: 0.3s ease-out;
      transition: 0.3s ease-out; }
