.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

.flat_wishlist {
    width: 200px;
    overflow: hidden;
}

#navbar .collapse-box {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

#navbar .fa-heart-o {
    font-size: 24px !important;
}

#navbar .wishlist-count-button {
    position: relative;
}

#navbar .wishlist-count-button .flat_count {
    position: absolute;
    bottom: -10px;
    right: -10px;
}

.margintop {
    margin-top: 0 !important;
}

@media only screen and (max-width: 991px) {

    #navbar .collapse-box {
        display: block !important;
    }

    #navbar .collapse-box .wishlist-count-button {
        width: 30px;
        margin-bottom: 20px;
    }
}

#navbar
.red-heart {
    color: red;
}

#flat-wishlist .image {
    z-index: -1;
}

#flat-wishlist .title {
    text-align: center;
    font-size: 32px;
}

#flat-wishlist .delete-from-wishlist {
    cursor: pointer;
}

#flat-wishlist .delete-from-wishlist:hover {
    color: red;
}

/*
 * Powiększanie zdjęcia po kliknięciu
 */

/*Eliminates padding, centers the thumbnail */

body, html {
    padding: 0;
    margin: 0;
    text-align: center;
}

/* Styles the thumbnail */

a.lightbox img {
    height: auto;
    border: 3px solid white;
    box-shadow: 0px 0px 8px rgba(0,0,0,.3);
    /*margin: 94px 20px 20px 20px;*/
}

/* Styles the lightbox, removes it from sight and adds the fade-in transition */

.lightbox-target {
    position: fixed;
    top: -100%;
    width: 100%;
    left: 0;
    background: rgba(0,0,0,.7);
    width: 100%;
    opacity: 0;
    -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out;
    transition: opacity .5s ease-in-out;
    overflow: hidden;
    z-index: 999;
}

/* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */

.lightbox-target img {
    margin: auto;
    position: absolute;
    top: 0;
    left:0;
    right:0;
    bottom: 0;
    max-height: 0%;
    max-width: 0%;
    border: 3px solid white;
    box-shadow: 0px 0px 8px rgba(0,0,0,.3);
    box-sizing: border-box;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}

/* Styles the close link, adds the slide down transition */

a.lightbox-close {
    display: block;
    width:50px;
    height:50px;
    box-sizing: border-box;
    background: white;
    color: black;
    text-decoration: none;
    position: absolute;
    top: -80px;
    right: 0;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:before {
    content: "";
    display: block;
    height: 30px;
    width: 1px;
    background: black;
    position: absolute;
    left: 26px;
    top:10px;
    -webkit-transform:rotate(45deg);
    -moz-transform:rotate(45deg);
    -o-transform:rotate(45deg);
    transform:rotate(45deg);
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:after {
    content: "";
    display: block;
    height: 30px;
    width: 1px;
    background: black;
    position: absolute;
    left: 26px;
    top:10px;
    -webkit-transform:rotate(-45deg);
    -moz-transform:rotate(-45deg);
    -o-transform:rotate(-45deg);
    transform:rotate(-45deg);
}

/* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */

.lightbox-target:target {
    opacity: 1;
    top: 0;
    bottom: 0;
}

.lightbox-target:target img {
    max-height: 100%;
    max-width: 100%;
}

.lightbox-target:target a.lightbox-close {
    top: 0px;
}

/*----------------------- Preloader -----------------------*/

.overlay {
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color:#fff;
    opacity:0.8;
    display:none;
    z-index:1001;
}

.overlay .set-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: black;
}

/*------------------------ INFO BOXES ------------------------*/

.flat-info {
    font-size: 28px;
    text-align: center;
}

.flat-limit {
    color: red;
}

.flat-exists {
    color: red;
}

.flat-added {
    color: green;
}

.flat-added .flat-added-icon {
    color: red;
    font-size: 50px;
    text-align: center;
}

.overlay-message {
    position: fixed;
    top:50%;
    left:50%;
    width:400px;
    height: 200px;
    background-color:#fff;
    border:1px solid #000;
    opacity:1;
    z-index:1002;
    box-sizing:border-box;
    padding: 50px;
    margin-left: -200px;
    margin-top: -125px;
    display: none;
}

/* ----------------- END -----------*/

.email-form {
    display: none;
}

#flat-wishlist .email-form {
    margin-top: 50px;
}

#flat-wishlist .submit {
    cursor: pointer;
}

#post-5375 h1 {
    display: none;
}

#hide-it {
    height: 50px;
}
