/*
 Theme Name:   Portrait Gallery
 Theme URI:    https://github.com/studiopress/genesis-block-theme/
 Description:  Portrait Gallery Theme
 Author:       Alex Oprica
 Author URI:   https://astriata.com
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  portrait-gallery
 Requires at least: 5.0
 Requires PHP: 7.1
*/
html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.15;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  margin: .67em 0;
  font-size: 2em;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace;
  font-size: 1em;
}

a {
  background-color: #0000;
}

abbr[title] {
  border-bottom: none;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  vertical-align: baseline;
  font-size: 75%;
  line-height: 0;
  position: relative;
}

sub {
  bottom: -.25em;
}

sup {
  top: -.5em;
}

img {
  border-style: none;
}

button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}

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;
}

fieldset {
  padding: .35em .75em .625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  max-width: 100%;
  white-space: normal;
  padding: 0;
  display: table;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"], [type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

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

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template, [hidden] {
  display: none;
}

*, :before, :after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

:before, :after {
  --tw-content: "";
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  line-height: 1.5;
}

body {
  line-height: inherit;
  margin: 0;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  vertical-align: baseline;
  font-size: 75%;
  line-height: 0;
  position: relative;
}

sub {
  bottom: -.25em;
}

sup {
  top: -.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
  background-color: #0000;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol, ul, menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button, [role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  vertical-align: middle;
  display: block;
}

img, video {
  max-width: 100%;
  height: auto;
}

*, :before, :after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #3b82f680;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #3b82f680;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

.container {
  width: 100%;
}

.\!container {
  width: 100% !important;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }

  .\!container {
    max-width: 640px !important;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }

  .\!container {
    max-width: 768px !important;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  .\!container {
    max-width: 1024px !important;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }

  .\!container {
    max-width: 1280px !important;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }

  .\!container {
    max-width: 1536px !important;
  }
}

.mb-4 {
  margin-bottom: 1rem;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.border {
  border-width: 1px;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.underline {
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, -webkit-text-decoration-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

:root {
  --color-primary: #333;
  --color-secondary: #810104;
  --color-tertiary: #252525;
  --color-tertiary-2: #e5e5e3;
  --color-secondary_Hover: #ab1b1e;
  --color-white: #fff;
  --color-black: #000;
  --font-primary: "Lato", sans-serif;
  --nav-height-600: 40px;
}

@keyframes nav__item-animation {
  from {
    opacity: 0;
    transform: translateX(10rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }

  70% {
    opacity: 1;
    transform: translateX(1rem);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes moveInRight {
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }

  70% {
    opacity: 1;
    transform: translateX(-1rem);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes moveInTop {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }

  100% {
    opactity: 1;
    transform: translateY(0);
  }
}

*, :after, :before {
  box-sizing: inherit;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 62.5%;
  overflow-x: hidden;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media only screen and (max-width: 75em) {
  html {
    font-size: 56%;
  }
}

@media only screen and (max-width: 48em) {
  html {
    font-size: 50%;
  }
}

@media only screen and (max-width: 37.5em) {
  html {
    font-size: 46%;
  }
}

@media only screen and (max-width: 23.5em) {
  html {
    font-size: 36%;
  }
}

body {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

em {
  font-style: italic;
}

a {
  color: var(--color-secondary);
  text-decoration: underline;
}

a:hover, a:focus {
  color: var(--color-secondary_Hover);
}

ul, ol {
  list-style: none;
}

img, picture {
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  display: block;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.skip-to-main-content {
  background-color: var(--color-secondary);
  color: #fff;
  width: 100%;
  text-align: center;
  z-index: 99;
  padding: 15px 0;
  font-size: 26px;
  transition: all .3s;
  position: fixed;
  top: 0;
  left: 0;
  translate: 0 -100%;
}

.skip-to-main-content:focus {
  color: #fff;
  outline: none;
  text-decoration: underline;
  translate: 0;
}

h1 {
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.25;
}

.search__results h1 {
  margin-bottom: 10px;
}

h2, .heading-secondary {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

h3, .date {
  color: #666;
  font-size: 14px;
}

h4, .heading__tertiary {
  margin: 2rem 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

h5, .name {
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 700;
}

.search-result {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.25;
}

@supports (image-rendering: -webkit-optimize-contrast) {
  .u-image-rend__opt-contr {
    image-rendering: -webkit-optimize-contrast;
  }

  .u-imagerend__smooth {
    image-rendering: smooth;
  }

  .u-imagerend__pixelated {
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
  }
}

.gallery {
  width: 100%;
  margin: 20px 0;
}

@media only screen and (max-width: 48em) {
  .gallery {
    margin: unset;
  }
}

.gallery ul {
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 2px;
  display: grid;
}

@media only screen and (max-width: 48em) {
  .gallery ul {
    grid-template-rows: 1fr max-content 1fr;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (max-width: 37.5em) {
  .gallery ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery ul li:not([class]) {
  opacity: 0;
}

@media only screen and (max-width: 48em) {
  .gallery ul li:not([class]):nth-last-child(-n+7) {
    display: none;
  }
}

@media only screen and (max-width: 37.5em) {
  .gallery ul li:not([class]):nth-last-child(-n+9) {
    display: none;
  }
}

.gallery ul li a:focus img {
  box-shadow: 0 0 0 3px var(--color-secondary);
}

.gallery ul img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__info {
  color: #fff;
  background-color: var(--color-secondary);
  grid-area: 1 / 5 / 3 / -1;
  padding: 35px;
  font-size: 27px;
}

@media only screen and (max-width: 75em) {
  .gallery__info {
    padding: 15px;
    font-size: 24px;
  }
}

@media screen and (max-width: 960px) {
  .gallery__info {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .gallery__info {
    font-size: 14px;
  }
}

@media only screen and (max-width: 48em) {
  .gallery__info {
    margin: unset;
    grid-area: 2 / 1 / 2 / -1;
    padding: 15px;
  }
}

@media only screen and (max-width: 37.5em) {
  .gallery__info {
    font-size: 14px;
  }
}

.gallery__info a {
  color: var(--color-primary);
  text-align: left;
  background-color: #fff;
  margin: 15px 0 0;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  position: relative;
}

@media screen and (max-width: 960px) {
  .gallery__info a {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  .gallery__info a {
    font-size: 18px;
  }
}

.gallery__info a:after {
  content: "";
  width: 11px;
  height: 18px;
  background: url("assets/img/icon-arrow.png") center no-repeat;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 15px;
}

.gallery__info a:hover, .gallery__info a:focus {
  color: #ab1b1e;
  outline: none;
}

.text__container {
  grid-area: 1 / 2 / -1 / 3;
}

.text__container h2, .text__container h3 {
  margin-top: 0;
}

.text__container .date {
  color: #666;
}

.text__container div p {
  margin: 20px 0;
}

.text__container > a {
  text-align: center;
  background-color: var(--color-secondary);
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .3s;
  display: inline-block;
}

.text__container > a:hover, .text__container > a:focus {
  background-color: #bb0105;
}

.acheivments__container {
  margin-top: 4rem;
}

@media only screen and (max-width: 48em) {
  .acheivments__container {
    margin-top: unset;
  }
}

.acheivments__container ul, .portrait__container h4 {
  margin-top: 2rem;
}

.portrait__container figure {
  background-color: #e9f4f2;
}

@media only screen and (max-width: 48em) {
  .portrait__container figure {
    max-width: 400px;
  }
}

.portrait__container figure img {
  width: 100%;
}

.portrait__container figure figcaption {
  padding: 15px;
}

.portrait__container figure figcaption h5 {
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  position: relative;
}

.portrait__container figure figcaption h5 .expand {
  width: 28px;
  height: 24px;
  background: url("assets/img/icon-expand.png") center no-repeat;
  font-size: 0;
  overflow: hidden;
}

.portrait__container figure figcaption ul {
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  font-size: 14px;
  display: grid;
}

.make__request-link {
  color: var(--color-secondary);
  background: #f5f5f5 url("assets/img/icon-form.png") 10px no-repeat;
  margin: 15px 0;
  padding: 10px 10px 10px 35px;
  text-decoration: none;
  transition: all .3s;
  display: block;
}

.make__request-link:hover, .make__request-link:focus {
  color: var(--color-secondary_Hover);
  background-color: #e0e0e0;
}

.form {
  color: #666;
  height: -moz-fit-content;
  height: fit-content;
  width: 100%;
  border: 1px solid #dfdfdf;
  margin: 10px 0 15px;
  padding: 15px;
}

@media only screen and (max-width: 48em) {
  .form {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

.form h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.form p {
  margin-top: 5px;
}

.form .control {
  margin-top: 15px;
}

.form label {
  margin-bottom: 5px;
  display: block;
}

.form textarea {
  resize: none;
  width: calc(100% - 15px);
  border: 1px solid #dfdfdf;
  padding: 10px;
  display: inline-block;
}

.form textarea.invalid {
  border: 1px solid #cd0005;
}

.form input {
  width: calc(100% - 15px);
  border: 1px solid #dfdfdf;
  padding: 5px;
  display: inline-block;
}

.form input.invalid {
  border: 1px solid #cd0005;
}

.form button {
  color: #333;
  text-align: center;
  cursor: pointer;
  background-color: #f3f3f3;
  border: 0;
  margin-top: 15px;
  padding: 10px 20px;
  font-family: arial;
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
  transition: background-color .3s;
  display: inline-block;
  position: relative;
}

.form button:hover, .form button:focus {
  background-color: #dfdfdf;
  outline: none;
}

.portraits__list--1 {
  grid-area: 1 / 2 / -1 / 3;
}

.portraits__list--1 ul {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  display: grid;
}

@media only screen and (max-width: 75em) {
  .portraits__list--1 ul {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (max-width: 48em) {
  .portraits__list--1 ul {
    grid-template-columns: repeat(3, max-content);
    gap: 3.5rem;
  }
}

@media screen and (max-width: 680px) {
  .portraits__list--1 ul {
    grid-template-columns: repeat(2, max-content);
  }
}

@media screen and (max-width: 468px) {
  .portraits__list--1 ul {
    grid-template-columns: repeat(1, max-content);
  }
}

.portraits__list--1 li {
  cursor: pointer;
  margin: auto;
}

.portraits__list--2 {
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
  position: relative;
}

.portraits__list--2:before {
  content: "";
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: 3px solid #fff;
  position: absolute;
  top: 0;
  left: 0;
}

.portraits__list--2 ul {
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  display: grid;
}

@media only screen and (max-width: 75em) {
  .portraits__list--2 ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 59.375em) {
  .portraits__list--2 ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 48em) {
  .portraits__list--2 ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 37.5em) {
  .portraits__list--2 ul {
    grid-template-columns: repeat(1, 1fr);
  }
}

.portraits__list--2 li {
  background-color: #fff;
  border: 1px solid #e6e6e64d;
  padding: 2rem;
}

@media screen and (max-width: 900px) {
  .portraits__list--2 li {
    padding: 3rem;
  }
}

@media only screen and (max-width: 48em) {
  .portraits__list--2 li {
    padding: 6rem;
  }
}

.portraits__list--3 {
  grid-area: 1 / 2 / -1 / 3;
}

.portraits__list--3 ul {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 2rem;
  display: grid;
}

.portraits__list--3 li {
  cursor: pointer;
  margin: auto;
}

.portraits__list a {
  text-decoration: none;
}

.portraits__list a:focus img {
  border-color: #949b9a;
}

.portraits__list figure {
  min-width: 180px;
  max-width: 185px;
}

.portraits__list img {
  border: 5px solid #d8e2e0;
  transition: all .3s;
}

.portraits__list img:hover {
  border-color: #949b9a;
}

.portraits__list figcaption {
  color: #333;
  max-height: 15px;
  text-align: center;
  margin: 5px 0 0;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.portrait__heading {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

@media only screen and (max-width: 48em) {
  .portrait__heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

.portrait__heading h1 .subtitle {
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
}

.portraits__list-sort {
  justify-content: center;
  align-items: center;
  gap: 4px;
  display: flex;
}

@media only screen and (max-width: 48em) {
  .portraits__list-sort {
    align-items: unset;
    justify-content: unset;
    width: 100%;
    flex-direction: column;
  }
}

.portraits__list-sort p {
  text-transform: uppercase;
  font-size: 12px;
}

.portraits__list-sort .dropdown {
  cursor: pointer;
  position: relative;
}

.portraits__list-sort .dropdown.active button:after {
  transform: rotate(180deg);
}

.portraits__list-sort .dropdown.active ul {
  max-height: 70vh;
  visibility: visible;
  overflow: auto;
}

.portraits__list-sort .dropdown button {
  text-transform: uppercase;
  pointer-events: none;
  background-color: #d8e2e0;
  border: 1px solid #fff;
  padding: 10px 35px 10px 10px;
  position: relative;
}

@media only screen and (max-width: 48em) {
  .portraits__list-sort .dropdown button {
    width: 100%;
    text-align: left;
  }
}

.portraits__list-sort .dropdown button:after {
  content: "";
  height: 0;
  width: 0;
  border-top: 8px solid #810104;
  border-left: 7px solid #0000;
  border-right: 7px solid #0000;
  margin: auto 0 auto 10px;
  transition: transform .3s;
  position: absolute;
  top: 0;
  bottom: 0;
}

.portraits__list-sort .dropdown button.active:after {
  transform: rotate(180deg);
}

.portraits__list-sort .dropdown button.active + ul {
  max-height: 70vh;
  visibility: visible;
  overflow: auto;
}

.portraits__list-sort .dropdown ul {
  width: max-content;
  min-width: 100%;
  z-index: 99;
  max-height: 0;
  visibility: hidden;
  transition: all .5s;
  position: absolute;
  top: 100%;
  right: 0;
  overflow: hidden;
}

@media only screen and (max-width: 48em) {
  .portraits__list-sort .dropdown ul {
    position: relative;
  }
}

.portraits__list-sort .dropdown ul > * {
  padding-bottom: 2px;
}

.portraits__list-sort .dropdown li {
  padding-bottom: unset;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

.portraits__list-sort .dropdown a {
  color: #333;
  background-color: #d8e2e0;
  padding: 10px;
  text-decoration: none;
  transition: background-color .3s;
  display: block;
}

.portraits__list-sort .dropdown a:hover, .portraits__list-sort .dropdown a:focus {
  background-color: #c1c9c7;
}

.pagination {
  justify-content: flex-end;
  align-items: center;
  margin: 15px 0 0;
  display: flex;
}

.pagination ul {
  justify-content: center;
  align-items: center;
  gap: 5px;
  display: flex;
}

.pagination li[class] a {
  border-right: unset;
  padding-right: 0;
}

.pagination a {
  border-right: 1px solid var(--color-secondary);
  padding: 1px 7px;
  line-height: 14px;
  text-decoration: none;
}

.pagination a.active {
  color: #000;
  font-weight: 700;
}

#share {
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 15px 0;
  display: flex;
}

#share .label {
  text-transform: uppercase;
  font-weight: 700;
}

#share .at-share-btn-elements {
  vertical-align: middle;
}

#share .at-share-tbx-element .at-share-btn {
  margin: unset;
  margin-right: 5px;
}

.persons-list__container h2 {
  margin-top: 0;
}

.persons-list__container .index__group h5 {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.persons-list__container .index__group ul {
  margin: 5px 0;
  padding-left: 10px;
}

.persons-list__container .index__group li a {
  color: #004a80;
  margin: 5px 0;
  text-decoration: none;
  transition: all .3s;
  display: block;
}

.persons-list__container .index__group li a:hover, .persons-list__container .index__group li a:focus {
  color: #0365ab;
  text-decoration: underline;
}

.persons-list__container .back-to-top {
  color: #004a80;
  text-align: right;
  border-top: 1px solid #d8e2e0;
  margin: 25px 0;
  padding: 0 25px 0 0;
  text-decoration: none;
  transition: color .3s;
  display: block;
  position: relative;
}

.persons-list__container .back-to-top:hover, .persons-list__container .back-to-top:focus {
  color: #0365ab;
  text-decoration: underline;
}

.persons-list__container .back-to-top:after {
  content: "";
  width: 1px;
  border-bottom: 7px solid #004a80;
  border-left: 7px solid #0000;
  border-right: 7px solid #0000;
  position: absolute;
  top: 8px;
  right: 3px;
}

.search__results--portraits {
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  display: none;
}

.search__results--portraits.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

.search__results--portraits > li {
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 15px 0;
}

.search__results--portraits > li figure {
  width: 100%;
  gap: 1.5rem;
  display: flex;
}

@media only screen and (max-width: 37.5em) {
  .search__results--portraits > li figure {
    flex-direction: column;
  }

  .search__results--portraits > li figure div:first-child {
    align-self: center;
  }
}

.search__results--portraits > li figure div:first-child img {
  border: 5px solid #d8e2e0;
  transition: border-color .3s;
}

.search__results--portraits > li figcaption {
  min-height: 100%;
  background-color: #f2f4f5;
  flex: 1;
  padding: 15px;
  display: inline-block;
}

.search__results--portraits > li ul {
  width: max-content;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1rem;
  font-size: 14px;
  display: grid;
}

.search__results--artists {
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  display: none;
}

.search__results--artists.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

.search__results--artists li {
  background-color: #f2f4f5;
  margin-top: 15px;
  padding: 15px;
}

.search__results--artists li > div > div {
  grid-template-columns: min-content 1fr;
  align-items: center;
  gap: 2rem 4rem;
  margin-top: 1.5rem;
  display: grid;
}

.header {
  background-color: var(--color-tertiary-2);
  min-height: 12.8rem;
  border-top: 10px solid var(--color-secondary);
  padding-bottom: 70px;
}

@media only screen and (max-width: 48em) {
  .header {
    padding-bottom: unset;
  }
}

.header__inner {
  max-width: 1100px;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: auto;
  padding: 20px 0 15px;
  display: flex;
}

@media only screen and (max-width: 75em) {
  .header__inner {
    max-width: unset;
    padding: 20px 20px 15px;
  }
}

@media only screen and (max-width: 48em) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.header__logo {
  flex: 0 40%;
  padding-top: 15px;
}

@media only screen and (max-width: 48em) {
  .header__logo {
    width: 100%;
    padding-top: unset;
  }
}

.header__util {
  flex-direction: column;
  flex: 0 44%;
  gap: 1rem;
  display: flex;
}

@media only screen and (max-width: 48em) {
  .header__util {
    width: 100%;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
  }
}

.header__util-links {
  align-self: flex-end;
  align-items: center;
  gap: 2rem;
  display: flex;
}

@media only screen and (max-width: 48em) {
  .header__util-links {
    display: none;
  }
}

.header__util-form {
  max-width: 330px;
  min-width: 330px;
  align-self: flex-end;
  position: relative;
}

@media only screen and (max-width: 48em) {
  .header__util-form {
    height: 100%;
    max-width: unset;
    flex: 0 95%;
  }
}

.header__util-form input {
  color: #333;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ebf0ef;
  padding: 8px 0 8px 7px;
}

.header__util-form input::placeholder {
  color: inherit;
}

.header__util-form button {
  height: 100%;
  text-align: right;
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translate(-50%, -50%);
}

.nav {
  z-index: 100;
  background-color: var(--color-tertiary);
  font-size: max(12px, 1.4rem);
  position: relative;
}

@media only screen and (max-width: 48em) {
  .nav {
    height: 0;
  }
}

.nav__list {
  max-width: 1200px;
  font-family: var(--font-primary);
  color: var(--color-purple);
  justify-content: flex-start;
  align-items: center;
  margin: auto;
  padding: 0 2rem;
  font-size: 1.6rem;
  font-weight: 400;
  display: flex;
}

@media only screen and (max-width: 75em) {
  .nav__list {
    padding: 0;
  }
}

@media only screen and (max-width: 48em) {
  .nav__list {
    width: 100%;
    background-color: var(--color-tertiary);
    z-index: 40;
    max-height: 0;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    transition: all .5s;
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
    box-shadow: 0 2rem 2rem #0003;
  }

  .nav__list.active {
    max-height: 50vh;
    visibility: visible;
  }
}

.nav__item {
  color: #fff;
}

.nav__item:last-child {
  display: none;
}

@media only screen and (max-width: 48em) {
  .nav__item {
    width: 100%;
  }

  .nav__item:last-child {
    display: unset;
  }

  .nav__item > .header__util-links {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 10px 25px 25px;
    display: flex;
  }

  .nav__item > .header__util-links a {
    color: #ccc;
    font-size: 14px;
  }

  .nav__item > .header__util-links a:hover, .nav__item > .header__util-links a:focus {
    color: #fff;
  }
}

.nav__link {
  text-transform: uppercase;
  color: #fff;
  padding: 9px 35px;
  font-size: 14px;
  text-decoration: none;
  transition: all .3s;
  display: inline-block;
  position: relative;
}

@media only screen and (max-width: 48em) {
  .nav__link {
    width: 100%;
    border-bottom: 1px solid #4e4e4e;
    padding: 7px 25px;
  }
}

.nav__link:after {
  content: "";
  opacity: 0;
  width: 20px;
  height: 10px;
  background-color: var(--color-tertiary);
  -webkit-clip-path: polygon(100% 0, 0 0, 50% 100%);
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  z-index: 200;
  transition: all .3s;
  position: absolute;
  top: 98%;
  left: 50%;
  transform: translateX(-50%);
}

@media only screen and (max-width: 48em) {
  .nav__link:after {
    content: unset;
  }
}

.nav__link:hover, .nav__link:focus, .nav__link.active {
  color: currentColor;
}

.nav__link:hover:after, .nav__link:focus:after, .nav__link.active:after {
  opacity: 1;
}

@media only screen and (max-width: 48em) {
  .nav__link:hover, .nav__link:focus, .nav__link.active {
    background-color: #484848;
  }
}

.nav__mobile-icon {
  color: #fff;
  background-color: var(--color-primary);
  height: 100%;
  cursor: pointer;
  display: none;
}

@media only screen and (max-width: 48em) {
  .nav__mobile-icon {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding: 6px 6px 4px;
    display: flex;
  }
}

.nav__mobile-icon:hover, .nav__mobile-icon:focus {
  background-color: var(--color-tertiary);
}

.nav__mobile-icon--text {
  color: currentColor;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1;
}

.nav__mobile-icon--icons {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.nav__mobile-icon--icons > :not(:last-child) {
  margin-bottom: 4px;
}

.nav__mobile-icon--icons span {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  display: inline-block;
}

.main {
  max-width: 1200px;
  width: 100%;
  background-color: #fff;
  margin: -60px auto auto;
  box-shadow: 0 0 15px #00000040;
}

@media only screen and (max-width: 48em) {
  .main {
    background-color: unset;
    box-shadow: unset;
    margin: auto;
  }
}

.main__inner {
  padding: 20px 50px;
}

@media only screen and (max-width: 75em) {
  .main__inner {
    padding: 20px;
  }
}

@media only screen and (max-width: 48em) {
  .main__inner {
    padding: 15px;
  }

  .home .main__inner {
    padding: 0;
  }
}

.footer {
  background-color: var(--color-tertiary-2);
  font-size: max(12px, 1.4rem);
  position: relative;
}

.footer__inner {
  max-width: 1200px;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  margin: auto;
  padding: 20px 0 15px;
  display: flex;
}

@media screen and (max-width: 1100px) {
  .footer__inner {
    padding: 20px 15px 15px;
  }
}

@media only screen and (max-width: 48em) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer__logo-container {
  flex: 0 50%;
}

.footer__info {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.footer__info-copyright {
  margin-top: 1rem;
}

.grid-layout {
  grid-template-rows: repeat(3, min-content);
  align-items: start;
  gap: 0 35px;
  display: grid;
}

.grid-layout--1 {
  grid-template-columns: 60% 1fr;
}

.grid-layout--1 .text__container {
  grid-row: unset;
  grid-column: unset;
}

@media only screen and (max-width: 48em) {
  .grid-layout--1 {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

.grid-layout--2 {
  grid-template-columns: 1fr 60%;
}

@media only screen and (max-width: 48em) {
  .grid-layout--2 {
    grid-template-columns: 1fr;
  }
}

.grid-layout > :nth-child(2) {
  height: min-content;
  border-left: 1px solid #dfdfdf;
  padding-left: 35px;
}

@media only screen and (max-width: 48em) {
  .grid-layout > :nth-child(2) {
    all: unset;
    border-top: 1px solid #dfdfdf;
    grid-row: 3;
    padding-top: 40px;
    position: relative;
  }
}










