body {
  padding: 0;
  margin: 0;
  background: #FFF;
  min-width: 360px;
}

body a {
  transition: 0.5s all;
  -webkit-transition: 0.5s all;
  -moz-transition: 0.5s all;
  -o-transition: 0.5s all;
  -ms-transition: 0.5s all;
}

.content {
  text-align: center;
}

input[type="button"], input[type="submit"] {
  transition: 0.5s all;
  -webkit-transition: 0.5s all;
  -moz-transition: 0.5s all;
  -o-transition: 0.5s all;
  -ms-transition: 0.5s all;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

label {
  margin: 0;
}

button {
  transition: 0.5s all;
  -webkit-transition: 0.5s all;
  -moz-transition: 0.5s all;
  -o-transition: 0.5s all;
  -ms-transition: 0.5s all;
}

body {
  font-family: 'Segoe UI', Helvetica, sans-serif;
}

.link-effect a {
  padding: 10px;
  color: #237546;
  font-weight: 700;
  text-shadow: none;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  transition: color 0.3s;
}

.link-effect a::before, .link-effect a::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  content: '';
  opacity: 0;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  -moz-transition: opacity 0.3s, -moz-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  transform: translateY(-10px);
}

.link-effect a::before {
  top: 0;
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  transform: translateY(-10px);
}

.link-effect a::after {
  bottom: 0;
  -webkit-transform: translateY(10px);
  -moz-transform: translateY(10px);
  transform: translateY(10px);
}

.link-effect a:hover, .link-effect a:focus {
  color: #fff;
}

.link-effect a:hover::before, .link-effect a:focus::before, .link-effect a:hover::after, .link-effect a:focus::after {
  opacity: 1;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  transform: translateY(0px);
}

.frame {
  min-height: 925px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.frame .frame-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 925px;
  background-size: 100% auto;
  background-position: top;
  background-repeat: no-repeat
}

.frame h3.slideanim {
  position: relative;
}

#home .frame-bg {
  background-color: black;
  background-image: url(../images/home.jpg);
}

#home .rslides {
  height: 925px;
}

#contact {
  background: black;
  color: #8C8C8C;
}

.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.rslides li {
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0;
}

.rslides li:first-child {
  position: relative;
  display: block;
  float: left;
}

.rslides img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0;
}

.rslides {
  margin: 0 auto;
}

#home .banner-info {
  text-align: center;
  width: 100%;
  margin: 280px 0 0 0;
}

#home .banner-info h3 {
  color: #fff;
  font-size: 52px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  margin: 0;
  padding: 60px 0 20px 0;
}

#home .banner-info p {
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  font-size: 18pt;
  font-weight: normal;
  position: relative;
  margin: 10px;
}

.social-icons {
  margin: 2% auto 0;
}

.social-icons a span {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url(../images/social-icons.png) no-repeat 0px 0px;
}

.social-icons span.facebook {
  background-position: 0px 0px;
}

.social-icons span.twitter {
  background-position: -40px 0px;
}

.social-icons span.linkedin {
  background-position: -80px 0px;
}

.social-icons span.googleplus {
  background-position: -120px 0px;
}

span.line1 {
  width: 484px;
  height: 1px;
  background-color: #fff;
  display: block;
  margin: 0 auto;
}

span.line2 {
  width: 484px;
  height: 1px;
  display: block;
  background-color: #fff;
  margin: 0 auto;
}

#about {
  padding: 0;
  margin: 0 auto;
}

img.img-responsive {
  margin: auto;
  max-width: 100%;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
  padding: 10px;
  border-top: none;
}

.skill-info {
  padding: 1em;
  margin-left: 15px;
  margin-right: 15px;
}

.skill-info h4 {
  margin-left: 6%;
  font-size: 18px;
  line-height: 25px;
  font-weight: bold;
}

.skill-info p {
  padding: 0;
}

.skill-info img {
  width: 100px;
  height: 100px;
}

.skill-info>div {
  text-align: center;
}

span.longline1 {
  width: 267px;
  height: 2px;
  display: inline-block;
  background-color: #5f809c;
  margin-top: 3%;
}

span.shortline1 {
  width: 33px;
  height: 2px;
  display: inline-block;
  background-color: #fff;
  margin-top: 3%;
}

span.longline2 {
  width: 270px;
  height: 2px;
  display: inline-block;
  background-color: #5f809c;
  margin-top: 3%;
}

span.shortline2 {
  width: 30px;
  height: 2px;
  display: inline-block;
  background-color: #fff;
  margin-top: 3%;
}

span.longline3 {
  width: 285px;
  height: 2px;
  display: inline-block;
  background-color: #5f809c;
  margin-top: 3%;
}

span.shortline3 {
  width: 15px;
  height: 2px;
  display: inline-block;
  background-color: #fff;
  margin-top: 3%;
}

span.longline4 {
  width: 276px;
  height: 2px;
  display: inline-block;
  background-color: #5f809c;
  margin-top: 3%;
}

span.shortline4 {
  width: 24px;
  height: 2px;
  display: inline-block;
  background-color: #fff;
  margin-top: 3%;
}

span.longline5 {
  width: 288px;
  height: 2px;
  display: inline-block;
  background-color: #5f809c;
  margin-top: 3%;
}

span.shortline5 {
  width: 12px;
  height: 2px;
  display: inline-block;
  background-color: #fff;
  margin-top: 3%;
}

#projects {
  padding: 0;
  margin: 0 auto;
  background: black;
}

#projects h3.content-text {
  text-align: center;
  font-size: 30px;
  line-height: 25px;
  font-weight: bold;
  padding: 25px 0 35px;
  -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
  transition: opacity 0.7s, transform 0.7s;
}

#projects p {
  padding: 5px 0 15px;
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
}

#projects img.slideanim {
  -webkit-box-shadow: 10px 10px 23px -1px rgba(0, 0, 0, 0.31);
  -moz-box-shadow: 10px 10px 23px -1px rgba(0, 0, 0, 0.31);
  box-shadow: 10px 10px 23px -1px rgba(0, 0, 0, 0.31);
}

#projects .vertical {
  padding-bottom:50px;
}

@media screen and (max-width: 1000px) {
  #projects .grid figure {
    display: inline-block;
    width: 120px;
    height: 120px;
    margin: 5px;
  }
}

input#name {
  outline: none;
  height: 50px;
  padding: 10px;
  border-radius: 0px;
  border-left: none;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid black;
}

input#email {
  outline: none;
  margin: 4% auto;
  padding: 10px;
  height: 50px;
  border-radius: 0px;
  border-left: none;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid black;
}

textarea.form-control {
  height: 140px;
  outline: none;
  border-radius: 0px;
  border-left: none;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid black;
}

.form-control:focus {
  border-color: transparent;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

#contact button.btn.btn-default.btn-lg {
  background-color: #A1B3A4;
  border-color: #A1B3A4;
  color: #fff;
  outline: none;
  border-radius: 0px;
  margin: 3% auto 0;
  padding: 15px 35px;
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
}

#contact button.btn.btn-default.btn-lg:hover {
  background-color: #000;
  color: #fff;
}

.contact-info h4 {
  font-size: 20px;
  line-height: 25px;
  font-weight: bold;
}

.contact-info p {
  padding: 15px 0;
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
}

.footer-info i {
  color: #A1B3A4;
  font-size: 30px;
  margin: 25px 20px 10px 25px;
  display: inline-block;
}

p.p1 {
  padding: 0;
  display: inline-block;
  color: #000;
  vertical-align: middle;
  margin: -50px 0 0;
  font-size: 16px;
  font-weight: 500;
}

p.p2 {
  padding: 0;
  display: block;
  color: #000;
  font-weight: 500;
  font-size: 16px;
  margin: -27px 0 0 80px;
}

p.p1 a {
  text-decoration: none;
  color: #000;
}

p.p1 a:hover {
  color: #A1B3A4;
}

p.p2 a {
  text-decoration: none;
  color: #000;
}

p.p2 a:hover {
  color: #A1B3A4;
}

.contact-info h5 {
  font-size: 20px;
  line-height: 25px;
  font-weight: bold;
  padding: 2em 0 0 .3em;
}

hr {
  border-top: 1px solid #BDB8B8;
  margin-top: 45px;
}

.copyright p a {
  text-decoration: none;
  color: #8C8C8C;
}

.copyright p {
  color: #8C8C8C;
  padding: 5px 0 17px;
  font-weight: 400;
  font-size: 15px;
}

footer span.glyphicon.glyphicon-chevron-up {
  margin: 0 0 0 50%;
  color: red;
}

@media (max-width: 1600px) {
  #home {
    min-height: 795px;
  }
  #home .rslides {
    height: 795px;
  }
  #home .banner-info {
    margin: 250px 0 0 0;
  }
}

@media (max-width: 1366px) {
  #home .banner-info {
    margin: 235px 0 0 0;
  }
}

@media (max-width: 1280px) {
  #home .banner-info {
    margin: 235px 0 0 0;
  }
}

@media (max-width: 1080px) {
  .grid figure, .grid .placeholder {
    width: 295px;
    height: 295px;
  }
  .grid figure {
    margin: 10px;
  }
  #home .banner-info h3 {
    font-size: 40px;
  }
  span.line1, span.line2 {
    width: 400px;
  }
  #home .banner-info {
    margin: 235px 0 0 0;
  }
  #home .banner-info p {
    font-size: 20px;
    padding: 4px;
  }
}

@media (max-width: 1024px) {
  #home {
    min-height: 675px;
  }
  #home .rslides {
    height: 675px;
  }
  #home .banner-info {
    margin: 180px 0 0 0;
  }
}

@media (max-width: 991px) {
  .grid figure, .grid .placeholder {
    width: 280px;
    height: 280px;
  }
  .contact-info {
    margin-top: 30px;
  }
  .skill-info img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }
  #contact .linkedin-link {
    margin-bottom: 20px;
  }
}

@media (max-width: 900px) {
  .grid figure, .grid .placeholder {
    width: 260px;
    height: 260px;
  }
  .fader .slider {
    right: 4%;
  }
  #photos img.img-rounded {
    height: 250px;
  }
}

@media (max-width: 800px) {
  #home {
    min-height: 600px;
  }
  #home .rslides {
    height: 600px;
  }
  #home .banner-info {
    margin: 180px 0 0 0;
  }
  .grid figure, .grid .placeholder {
    width: 230px;
    height: 230px;
  }
  .grid figure {
    margin: 5px;
  }
  .fader .slider {
    right: 2%;
  }
  span.line1, span.line2 {
    width: 327px;
  }
  #home .banner-info p {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  #home .banner-info {
    margin: 180px 0 0 0;
  }
  #photos img.img-responsive {
    height: 245px;
  }
  #photos h3 {
    padding: 60px 0 40px;
  }
  .contact-info h4 {
    padding-bottom: 20px;
  }
  #contact p {
    padding: 5px 0 30px;
  }
  .myskills {
    padding: 0em 0 2em;
  }
  .fader .slider {
    right: 1%;
  }
}

@media (max-width: 736px) {
  #photos img.img-responsive {
    height: 220px;
  }
  h3.slideanim {
    padding: 20px 0 10px;
  }
  #home {
    min-height: 360px;
  }
  #home .rslides {
    height: 360px;
  }
  #home .banner-info {
    margin: 46px 0 0 0;
  }
  span.line1, span.line2 {
    width: 300px;
  }
  #home .banner-info p {
    font-size: 17px;
  }
}

@media (max-width: 667px) {
  #home .banner-info {
    margin: 30px 0 0 0;
  }
  #home .banner-info h3 {
    font-size: 35px;
  }
  #home .banner-info p {
    font-size: 12px;
  }
  span.line1, span.line2 {
    display: none;
  }
  .content-img {
    height: 385px;
  }
}

@media (max-width: 640px) {
  #home .banner-info {
    margin: 45px 0 0 0;
  }
  #home .banner-info h3 {
    padding: 60px 0 10px;
  }
  #home .banner-info p {
    font-size: 12px;
  }
  span.line1, span.line2 {
    display: none;
  }
  .content-img {
    height: 374px;
  }
}

@media (max-width: 600px) {
  .content-img {
    height: 350px;
  }
  .close-content {
    top: -17px;
  }
  #home .banner-info {
    margin: 60px 0 0 0;
  }
}

@media (max-width: 568px) {
  #home {
    min-height: 265px;
  }
  #home .rslides {
    height: 265px;
  }
  #home .banner-info {
    margin: 20px 0 0 0;
  }
  .content-img {
    height: 332px;
  }
}

@media (max-width: 480px) {
  #home .banner-info h3 {
    font-size: 25px;
  }
  #home .banner-info {
    margin: 20px 0 0 0;
  }
  .content-img {
    height: 278px;
  }
  h3.slideanim {
    font-size: 25px;
    padding: 40px 0 20px;
  }
  #contact p {
    font-size: 15px;
  }
  .contact-info p {
    font-size: 15px;
  }
}

@media (max-width: 414px) {
  #home .banner-info {
    margin: 20px 0 0 0;
  }
  #photos img.img-responsive {
    height: 185px;
  }
  h3.slideanim {
    font-size: 25px;
  }
  .contact-info h5 {
    padding: 5px 0 10px;
  }
  hr {
    margin-top: 0;
  }
  input#name, input#email {
    height: 45px;
  }
}

@media (max-width: 384px) {
  #home .banner-info {
    margin: 20px 0 0 0;
  }
  p.skill-text {
    padding: 15px 25px 25px;
  }
  h3.slideanim {
    font-size: 23px;
    padding: 35px 0 15px;
  }
  #photos img.img-responsive {
    height: 170px;
  }
  .content-img {
    height: 220px;
  }
  .myskills p {
    font-size: 15px;
  }
  p.skill-text {
    padding: 25px;
  }
  #contact p {
    font-size: 15px;
  }
  .contact-info p {
    font-size: 15px;
  }
}

@media (max-width: 375px) {
  #photos img.img-responsive {
    height: 165px;
  }
  h3.slideanim {
    font-size: 20px;
  }
  .content-img {
    height: 215px;
  }
}

@media (max-width: 320px) {
  #home .banner-info {
    margin: 20px 0 0 0;
  }
  .contact-info p {
    padding-bottom: 5px;
  }
  input#name {
    margin-top: 10px;
  }
  .contact-info h5 {
    padding-top: 1em;
  }
  hr {
    margin-top: 20px;
  }
  h3.slideanim {
    padding: 10px 0 10px;
  }
  #contact button.btn.btn-default.btn-lg {
    padding: 10px 25px;
  }
  #photos img.img-responsive {
    height: 145px;
  }
  .content-img {
    height: 183px;
  }
  p.skill-text {
    padding: 20px;
  }
  #contact p {
    font-size: 14px;
    padding-bottom: 10px;
  }
}

@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('/fonts/glyphicons-halflings-regular.eot');
}

.noscroll {
  overflow: hidden;
}

.grid-wrap {
  margin: 10px auto 0;
  width: 100%;
  padding: 0;
  -webkit-perspective: 1500px;
  perspective: 1500px;
}

.grid {
  position: relative;
  -webkit-transition: all 0.5s cubic-bezier(0, 0, 0.25, 1);
  transition: all 0.5s cubic-bezier(0, 0, 0.25, 1);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  text-align: center;
}

.view-full .grid {
  -webkit-transform: translateZ(-1500px);
  transform: translateZ(-1500px);
}

.grid figure, .grid .placeholder {
  width: 350px;
  height: 350px;
}

.grid figure {
  margin: 20px;
  display: inline-block;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.grid figure.active {
  opacity: 0;
}

.grid .placeholder {
  pointer-events: none;
  position: absolute;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}

.placeholder>div {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.placeholder .front img {
  width: 100%;
  height: 100%;
}

.placeholder .back {
  background: white;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.view-full .placeholder {
  -webkit-transition: all 0.5s 0.1s cubic-bezier(0, 0, 0.25, 1);
  transition: all 0.5s 0.1s cubic-bezier(0, 0, 0.25, 1);
}

.vertical .view-full .placeholder {
  -webkit-transform: translateZ(1500px) rotateX(-179.9deg);
  transform: translateZ(1500px) rotateX(-179.9deg);
}

.grid figure img {
  display: block;
  width: 100%;
}

.content, .loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.content {
  overflow-y: scroll;
  height: 0;
  background: #fff;
  visibility: hidden;
  z-index: 400;
  -webkit-overflow-scrolling: touch;
}

.loading {
  opacity: 0;
  z-index: 1;
  background: transparent url(../images/loader.gif) no-repeat center center;
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
  transition: opacity 0.5s, transform 0.5s;
}

.loading.show {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

.content.show {
  height: auto;
  pointer-events: auto;
  visibility: visible;
}

.content>div {
  z-index: 10;
  position: absolute;
  top: 0;
  width: 100%;
  overflow: hidden;
  height: 0;
  opacity: 0;
  background: #fff;
}

.content>div.show {
  height: auto;
  opacity: 1;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.icon:before {
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.close-content {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 30px;
  height: 30px;
  font-weight: bold;
  color: white;
  padding-top: 3px;
  z-index: 20000;
  cursor: pointer;
  background: rgba(0,0,0,0.5)
}

.close-content:hover {
  color: #999;
}

.content>div.show~.close-content {
  opacity: 1;
  pointer-events: auto;
}

.content-img {
  max-width: 600px;
  width: 90%;
  opacity: 0;
  -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
  transition: opacity 0.5s, transform 0.5s;
}

.vertical .content-img, .vertical .content-text {
  -webkit-transform: translateY(100px);
  transform: translateY(100px);
}

.content>div.show .content-img, .content>div.show .content-text {
  opacity: 1;
}

.vertical .content>div.show .content-img, .vertical .content>div.show .content-text {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

h3.slideanim {
  text-align: center;
  font-size: 30px;
  line-height: 25px;
  font-weight: bold;
  -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
  transition: opacity 0.7s, transform 0.7s;
  color: #A1B3A4;
  padding: 85px 0 20px;
}

.content-img {
  height: 400px;
  background-color: #ddd;
  margin: 70px auto 30px;
}

.no-pointerevents .content, .no-csstransforms3d .content, .no-csstransitions .content, .no-pointerevents .content>div, .no-csstransforms3d .content>div, .no-csstransitions .content>div, .no-pointerevents .close-content, .no-csstransforms3d .close-content, .no-csstransitions .close-content {
  opacity: 1;
  visibility: visible;
  display: none;
  height: auto;
}

.no-pointerevents .show .close-content, .no-csstransforms3d .show .close-content, .no-csstransition .show .close-content, .no-pointerevents div.show, .no-csstransforms3d div.show, .no-csstransitions div.show, .no-csstransitions .content-img, .no-csstransitions .content-text, .no-csstransforms3d .content-img, .no-csstransforms3d .content-text, .no-pointerevents .content-img, .no-pointerevents .content-text {
  display: block !important;
  opacity: 1;
}

@media screen and (max-width: 1000px) {
  .grid figure, .grid .placeholder {
    width: 240px;
    height: 212px;
  }
}

#photos {
  color: black;
  padding: 0 0 40px;
  margin: 0 auto;
  text-align: center;
}

#photos .frame-bg {
  background-color: white;
  background-image: url(../images/photos.jpg);
  background-repeat: repeat;
  background-size: 600px 600px;
}

#photos h3.slideanim {
  margin: 0 0 30px;
  color: black;
}

#photos img.img-responsive {
  height: 282px;
  margin-bottom: 5px;
  opacity: 0.67;
  display: inline-block;
  transition: 0.5s all;
  -webkit-transition: 0.5s all;
  -moz-transition: 0.5s all;
  -o-transition: 0.5s all;
  -ms-transition: 0.5s all;
}

#photos img.img-responsive:hover {
  opacity: 1;
  transition: 0.5s all;
  -webkit-transition: 0.5s all;
  -moz-transition: 0.5s all;
  -o-transition: 0.5s all;
  -ms-transition: 0.5s all;
}

#photos .gallery-thumbs {
  overflow-y: hidden;
  width: 100%;
  max-width: 1000px;
  position: relative;
  left: 50%;
  transform: translate(-50%);
}

#photos .gallery-thumb {
  background-color: black;
  display: inline-block;
  width: 200px;
  height: 200px;
  margin: 2px;
  cursor: pointer;
}

#photos .instagram-follow {
  margin-top: 20px;
  position: relative;
}

#photos .instagram-follow a, #photos .instagram-follow a:hover, #photos .instagram-follow a:visited {
  color: black;
  text-decoration: none;
}

#photos .instagram-follow span {
  vertical-align: middle;
  margin-left: 5px;
  text-decoration: underline;
}

.gallery-overlay {
  position: fixed;
  width: 100%;
  min-width: 360px;
  height: 100%;
  z-index: 10000;
  top: 0;
  left: 0;
  display: none;
}

.gallery-overlay .close {
  color: white;
  opacity: 1;
  font-size: 3em;
  top: 0px;
  right: 0px;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  position: absolute;
}

.gallery-overlay .carousel, .gallery-overlay .carousel-inner {
  width: 100%;
  height: 100%;
  left: 0;
}

.gallery-overlay .carousel-item {
  top: 50%;
  transform: translate(0, -50%);
  text-align:center;
}

.gallery-overlay .carousel-item img,
.gallery-overlay .carousel-item video {
  width: 100%;
  max-width: 800px;
  max-height: 100%;
}

.gallery-overlay .gallery-lightbox {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: absolute;
}

.back-to-top {
  background: none;
  border: none;
  color: #007bff;
  margin-bottom: 20px;
}

@media screen and (max-width: 500px) {
  .gallery-overlay .close {
    font-size: 2em;
    width: 20px;
    height: 20px;
  }
}