/*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */
/* Document
       ========================================================================== */
/**
     * 1. Correct the line height in all browsers.
     * 2. Prevent adjustments of font size after orientation changes in
     *    IE on Windows Phone and in iOS.
     */
html {
  line-height: 1.15;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
       ========================================================================== */
/**
     * Remove the margin in all browsers (opinionated).
     */
body {
  margin: 0;
}

/**
     * Add the correct display in IE 9-.
     */
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
     * Correct the font size and margin on `h1` elements within `section` and
     * `article` contexts in Chrome, Firefox, and Safari.
     */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
figcaption,
figure {
  display: block;
}

/**
     * Add the correct margin in IE 8.
     */
figure {
  margin: 1em 40px;
}

/**
     * 1. Add the correct box sizing in Firefox.
     * 2. Show the overflow in Edge and IE.
     */
hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
     * Add the correct display in IE.
     */
main {
  display: block;
}

/**
     * 1. Correct the inheritance and scaling of font size in all browsers.
     * 2. Correct the odd `em` font sizing in all browsers.
     */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Links
       ========================================================================== */
/**
     * 1. Remove the gray background on active links in IE 10.
     * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
     */
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

/* Text-level semantics
       ========================================================================== */
/**
     * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
     * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
     */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
  /* 2 */
}

/**
     * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
     */
b,
strong {
  font-weight: inherit;
}

/**
     * Add the correct font weight in Chrome, Edge, and Safari.
     */
b,
strong {
  font-weight: bolder;
}

/**
     * 1. Correct the inheritance and scaling of font size in all browsers.
     * 2. Correct the odd `em` font sizing in all browsers.
     */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
     * Add the correct font style in Android 4.3-.
     */
dfn {
  font-style: italic;
}

/**
     * Add the correct background and color in IE 9-.
     */
mark {
  background-color: #ff0;
  color: #000;
}

/**
     * Add the correct font size in all browsers.
     */
small {
  font-size: 80%;
}

/**
     * Prevent `sub` and `sup` elements from affecting the line height in
     * all browsers.
     */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
audio,
video {
  display: inline-block;
}

/**
     * Add the correct display in iOS 4-7.
     */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
     * Remove the border on images inside links in IE 10-.
     */
img {
  border-style: none;
}

/**
     * Hide the overflow in IE.
     */
svg:not(:root) {
  overflow: hidden;
}

/* Forms
       ========================================================================== */
/**
     * 1. Change the font styles in all browsers (opinionated).
     * 2. Remove the margin in Firefox and Safari.
     */
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
     * Show the overflow in IE.
     */
button {
  overflow: visible;
}

/**
     * Remove the inheritance of text transform in Edge, Firefox, and IE.
     * 1. Remove the inheritance of text transform in Firefox.
     */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
     * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
     *    controls in Android 4.
     * 2. Correct the inability to style clickable types in iOS and Safari.
     */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  /**
       * Remove the inner border and padding in Firefox.
       */
  /**
       * Restore the focus styles unset by the previous rule.
       */
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
     * Show the overflow in Edge.
     */
input {
  overflow: visible;
}

/**
     * 1. Add the correct box sizing in IE 10-.
     * 2. Remove the padding in IE 10-.
     */
[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
     * Correct the cursor style of increment and decrement buttons in Chrome.
     */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
     * 1. Correct the odd appearance in Chrome and Safari.
     * 2. Correct the outline style in Safari.
     */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
  /**
       * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
       */
}

[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
     * 1. Correct the inability to style clickable types in iOS and Safari.
     * 2. Change font properties to `inherit` in Safari.
     */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/**
     * Correct the padding in Firefox.
     */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
     * 1. Correct the text wrapping in Edge and IE.
     * 2. Correct the color inheritance from `fieldset` elements in IE.
     * 3. Remove the padding so developers are not caught out when they zero out
     *    `fieldset` elements in all browsers.
     */
legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  color: inherit;
  /* 2 */
  white-space: normal;
  /* 1 */
}

/**
     * 1. Add the correct display in IE 9-.
     * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
     */
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

/**
     * Remove the default vertical scrollbar in IE.
     */
textarea {
  overflow: auto;
}

/* Interactive
       ========================================================================== */
/*
     * Add the correct display in Edge, IE, and Firefox.
     */
details {
  display: block;
}

/*
     * Add the correct display in all browsers.
     */
summary {
  display: list-item;
}

/*
     * Add the correct display in IE 9-.
     */
menu {
  display: block;
}

/* Scripting
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
canvas {
  display: inline-block;
}

/**
     * Add the correct display in IE.
     */
template {
  display: none;
}

/* Hidden
       ========================================================================== */
/**
     * Add the correct display in IE 10-.
     */
[hidden] {
  display: none;
}

:root {
  --dark-background-color: #2b2b2b;
  --dark-text-color: #e5e5e5;
  --light-background-color: #ffffff;
  --light-text-color: #44596e;
  --grey-background-color: #7e7e7e;
  --grey-text-color: #e5e5e5;
}

/* ul */
/* xl */
/* lg */
/* md */
/* sm */
/* xs */
/* xx */
.header-menu__container, .footer__container {
  margin: auto;
  padding-right: 20px;
  padding-left: 20px;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  overflow-y: scroll;
  letter-spacing: 0.1em;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.15;
}

.button-container {
  display: none;
}

a {
  text-decoration: none;
  -webkit-transition: color 0.5s ease-in-out;
  -o-transition: color 0.5s ease-in-out;
  transition: color 0.5s ease-in-out;
  color: #ffffff;
}

a:hover {
  color: #ee5100;
}

h1 {
  letter-spacing: 0.1em;
  text-align: center;
  font-family: "Roboto Slab", serif;
  font-weight: 900;
  line-height: 1.2em;
}

main {
  padding: 6vh 0;
}

.header {
  display: grid;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: fixed;
  width: 100%;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  z-index: 99;
  border-bottom: 3px solid #000000;
  -webkit-box-shadow: 2px 13px 15px -1px rgba(0, 0, 0, 0.2);
          box-shadow: 2px 13px 15px -1px rgba(0, 0, 0, 0.2);
}

.header-logo {
  font-size: 1.5rem;
  padding: 10px 0 0 10px;
}

.header-menu__container {
  position: relative;
  display: grid;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  grid-template-columns: auto 1fr;
}

.header-navbar {
  margin-top: -10px;
}

.header-navbar__list {
  margin: 0 0 -20px 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  z-index: 1;
}

.header-navbar__item {
  padding: 20px;
}

.gallery {
  padding: 20px 20px 40px 20px;
}

.gallery__container {
  display: grid;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: #e5e5e5;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.gallery-item__image {
  background-color: #cfcfcf;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
  width: 100%;
  height: 100%;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow: hidden;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  -o-object-fit: cover;
     object-fit: cover;
}

.gallery-item__image img {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
  background-color: #cfcfcf;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
}

.gallery-item:hover .gallery-item__image {
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.gallery-item:nth-of-type(1) {
  grid-area: a1;
}

.gallery-item:nth-of-type(2) {
  grid-area: a2;
}

.gallery-item:nth-of-type(3) {
  grid-area: a3;
}

.gallery-item:nth-of-type(4) {
  grid-area: a4;
}

.gallery-item:nth-of-type(5) {
  grid-area: a5;
}

.gallery-item:nth-of-type(6) {
  grid-area: a6;
}

.gallery-item:nth-of-type(7) {
  grid-area: a7;
}

.gallery-item:nth-of-type(8) {
  grid-area: a8;
}

.gallery-item:nth-of-type(9) {
  grid-area: a9;
}

.gallery-item:nth-of-type(10) {
  grid-area: a10;
}

.gallery-item:nth-of-type(11) {
  grid-area: a11;
}

.gallery-item:nth-of-type(12) {
  grid-area: a12;
}

.gallery__title {
  text-align: center;
}

h1 span {
  text-shadow: 0 0 2px rgba(99, 117, 136, 0.2);
  background: url(https://i.ibb.co/RDTnNrT/animated-text-fill.png) repeat-y;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-animation: textAnimation 80s linear infinite;
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
}

@-webkit-keyframes textAnimation {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.minimized {
  cursor: pointer;
}

#magnify {
  display: none;
  position: fixed;
  max-width: 1000px;
  padding: 20px;
  height: auto;
  z-index: 9999;
}

#magnify img {
  width: 100%;
}

#overlay {
  display: none;
  background: #000000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 9990;
}

#close-popup {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 15px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}

#close-popup i {
  width: 30px;
  height: 30px;
  background: url(https://codernote.ru/files/cross.png) no-repeat center center;
  background-size: 16px 16px;
  display: block;
}

@-webkit-keyframes rota {
  25% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes rota {
  25% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

#close-popup:hover {
  -webkit-animation: rota 4s infinite normal;
          animation: rota 4s infinite normal;
  -webkit-animation-iteration-count: 1;
          animation-iteration-count: 1;
}

.footer {
  padding: 0 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 99;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.8);
}

.footer__container {
  display: grid;
  justify-items: self-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  grid-gap: 40px;
}

.footer__title {
  display: inline-block;
  margin-right: 0.5em;
  text-align: center;
  letter-spacing: 0.33em;
  text-transform: uppercase;
  color: #637588;
  font-weight: 100;
}

.footer__contscts {
  text-align: center;
}

.footer__contact {
  display: inline-block;
  font-weight: 400;
}

.footer__social {
  display: grid;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 10px;
  grid-gap: 10px;
  grid-template-columns: repeat(7, auto);
}

.footer__social .fab,
.footer__social .fas {
  font-size: 2rem;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.footer__social .fab:hover,
.footer__social .fas:hover {
  color: #ee5100;
  -webkit-transform: scale(1.2);
      -ms-transform: scale(1.2);
          transform: scale(1.2);
}

body.theme-dark {
  --background-color: var(--dark-background-color);
  --text-color: var(--dark-text-color);
}

body.theme-light {
  --background-color: var(--light-background-color);
  --text-color: var(--light-text-color);
}

body.theme-grey {
  --background-color: var(--grey-background-color);
  --text-color: var(--grey-text-color);
}

body {
  background: var(--background-color);
  color: var(--text-color);
}

.bg-grey {
  background-color: var(--grey-background-color);
}

@media (min-width: 640px) {
  .theme {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1080px) {
  .button-container {
    display: block;
  }
}

@media (min-width: 768px) {
  .header-navbar__list {
    display: grid;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
    grid-template-columns: repeat(auto-fit, minmax(50px, -webkit-max-content));
    grid-template-columns: repeat(auto-fit, minmax(50px, max-content));
  }
  .footer__container {
    grid-template-columns: auto 1fr;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 3.75rem;
  }
  .gallery__container {
    grid-gap: 20px;
    grid-template-areas: "a1 a1 a1 a2" "a1 a1 a1 a3" "a1 a1 a1 a4" "a5 a6 a7 a8" "a9 a12 a12 a12" "a10 a12 a12 a12" "a11 a12 a12 a12";
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1080px) {
  .header-navbar__item {
    display: block;
  }
}

@media (max-width: 1199.8px) and (min-width: 768px) {
  .gallery__container {
    grid-gap: 10px;
    grid-template-areas: "a1 a1 a2" "a1 a1 a3" "a4 a4 a5" "a4 a4 a6" "a7 a7 a8" "a7 a7 a9" "a10 a10 a11" "a10 a10 a12";
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .header-navbar__item {
    display: none;
  }
}

@media (max-width: 991.8px) and (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.8px) {
  .header-menu__container, .footer__container {
    padding-right: 5px;
    padding-left: 5px;
  }
  h1 {
    font-size: 1.875rem;
  }
  .header-navbar__list {
    text-align: right;
  }
  .gallery {
    padding: 20px 20px 60px 20px;
  }
  .gallery__container {
    font-size: 1.125rem;
    grid-gap: 10px;
    grid-template-areas: "a1 a1 a1" "a2 a3 a4" "a5 a5 a5" "a6 a7 a8" "a9 a9 a9" "a10 a11 a12";
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__container {
    grid-template-columns: auto;
    justify-items: center;
    grid-template-rows: 20px;
    grid-gap: 5px;
    padding-top: 10px;
  }
  .footer__social .fab,
  .footer__social .fas {
    font-size: 4vw;
  }
}

@media (max-width: 575.8px) {
  select {
    font-size: 1rem;
  }
  .header-logo {
    font-size: 1rem;
  }
  .header-menu__container {
    grid-template-columns: auto auto;
  }
  .footer__social .fab,
  .footer__social .fas {
    font-size: 6vw;
  }
}

@media (prefers-color-scheme: dark) {
  body.theme-dark {
    --background-color: var(--dark-background-color);
    --text-color: var(--dark-text-color);
  }
}

@media (prefers-color-scheme: grey) {
  body.theme-grey {
    --background-color: var(--grey-background-color);
    --text-color: var(--grey-text-color);
  }
}

@media (prefers-color-scheme: light) {
  body.theme-light {
    --background-color: var(--light-background-color);
    --text-color: var(--light-text-color);
  }
  body.theme-light > footer {
    -webkit-filter: invert(80%);
            filter: invert(80%);
  }
}
