/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
     font-family: "Axiforma";
     src:
       local("Axiforma-Regular"),
       url("../font/axiforma-regular.woff") format("woff"),
       url("../font/axiforma-regular.woff2") format("woff2");
   }
html, body, input, textarea, button {
  font-family: "Axiforma", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
body {
  font-size: calc(3px + 6 * ((100vw - 320px) / 680));
}
b, strong, h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}
p, ul, ol {
  font-size: 0.727em;
  font-size: 1.250em;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
figure {
  margin: 0;
  padding: 0;
  display: block;
}
#site-header, #contacts, main {
  box-sizing: border-box;
  margin: 0 auto 3.125vw;
  padding: 6.25vw 6.25vw 0;
  width: 100%;
  max-width: 1280px;
}
#contacts, main {
  padding-top: 0;
  padding-bottom: 6.25vw;
}
#site-header, #contacts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: space-between;
}
#site-header {
  padding-top: 3.125vw;
  position: relative;
}
#contacts {
  margin-bottom: 0;
  position: sticky;
  top: 100vh;
}
.site-logo {
  margin: 0;
  line-height: 1em;
  width: 25%;
  min-width: 120px;
}
#site-nav {
  width: 70%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: right;
  gap: 0 3em;
}
#site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: right;
  gap: 1em 2em;
  line-height: 1em;
  
  margin-top: .75em;
}
#site-nav .bogo-language-switcher {
  gap: 1em;
  /* position: absolute;
  top: 1.5625vw;
  right: 6.25vw;
  gap: 1em; */
}
#contacts .bogo-language-switcher {
  margin: 1em 0 0;
  padding: 0;
  width: 25%;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 1em;
  
  display: none;
}
#site-nav a:link, 
#site-nav a:visited, 
#site-nav a:hover, 
#site-nav a:focus, 
#site-nav a:active {
  padding-bottom: .75em;
  border-bottom: 1px solid #fff;
  display: block;
  text-decoration: none;
  color: #000;
  transition: border .5s linear;
}
#site-nav a:hover, 
#site-nav a:focus, 
#site-nav a:active {
  border-color: #000;
}
#site-nav li[class*="current"] a:link, 
#site-nav li[class*="current"] a:visited, 
#site-nav li[class*="current"] a:hover, 
#site-nav li[class*="current"] a:focus, 
#site-nav li[class*="current"] a:active {
  border-color: #000;
}
.single #site-nav a[href="https://dambulova.com/"]:link, 
.single #site-nav a[href="https://dambulova.com/"]:visited, 
.single #site-nav a[href="https://dambulova.com/"]:hover, 
.single #site-nav a[href="https://dambulova.com/"]:focus, 
.single #site-nav a[href="https://dambulova.com/"]:active {
  border-color: #000;
}
.single #site-nav a[href="https://dambulova.com/en/"]:link, 
.single #site-nav a[href="https://dambulova.com/en/"]:visited, 
.single #site-nav a[href="https://dambulova.com/en/"]:hover, 
.single #site-nav a[href="https://dambulova.com/en/"]:focus, 
.single #site-nav a[href="https://dambulova.com/"]:active {
  border-color: #000;
}
#contacts .bogo-language-switcher a:link, 
#contacts .bogo-language-switcher a:visited, 
#contacts .bogo-language-switcher a:hover, 
#contacts .bogo-language-switcher a:focus, 
#contacts .bogo-language-switcher a:active {
  padding-bottom: .75em;
  border-bottom: 1px solid #fff;
  display: block;
  text-decoration: none;
  color: #000;
  transition: border .5s linear;
}
#contacts .bogo-language-switcher a:hover, 
#contacts .bogo-language-switcher a:focus, 
#contacts .bogo-language-switcher a:active {
  border-color: #000;
}
#contacts .bogo-language-switcher li[class*="current"] a:link, 
#contacts .bogo-language-switcher li[class*="current"] a:visited, 
#contacts .bogo-language-switcher li[class*="current"] a:hover, 
#contacts .bogo-language-switcher li[class*="current"] a:focus, 
#contacts .bogo-language-switcher li[class*="current"] a:active {
  border-color: #000;
}

#contacts .contacts {
  width: 70%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: right;
}
#contacts p {
  margin: 0;
  width: 100%;
  text-align: right;
}
#contacts p br {
  content: '';
  display: block;
  margin-top: 1.4em;
}
#contacts a:link,
#contacts a:visited,
#contacts a:hover,
#contacts a:focus,
#contacts a:active {
  color: #000;
  text-decoration: underline;
}

.portfolio-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  gap: 3.125vw 5%;
}
.portfolio-wrapper article {
  width: 30%;
  margin-bottom: 1.5625vw;
}
.portfolio-wrapper article h2 {
  font-size: 1.250em;
  line-height: 1.500em;
  color: #fff;
  position: relative;
}
.portfolio-wrapper figure a {
  display: block;
  position: relative;
}
.portfolio-wrapper figure a:after {
  content: '';
  display: block;
  box-sizing: border-box;
  position: absolute;
  top: -5%;
  left: -5%;
  z-index: 2;
  opacity: 0;
  width: 110%;
  height: 110%;
  border: 20px solid #d5d5d5;
  transition: opacity .5s linear;
}
.portfolio-wrapper figure a:hover:after, 
.portfolio-wrapper figure a:focus:after, 
.portfolio-wrapper figure a:active:after {
  opacity: 1;
}
.portfolio-wrapper figure a img {
  transform-origin: 50% 50%;
  transform: scale(1);
  transition: transform .5s ease-out;
}
.portfolio-wrapper figure a:hover img {
  transform: scale(1.1);
}
.wp-block-image:has(figcaption) {
  padding: 3.5em 0 0;
  margin: 0;
  position: relative;
  font-size: 1.250em;
}
figcaption {
  display: block;
  margin: 0 0 1.750em;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1em;
}
.portfolio {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 50%;
}
.portfolio .wrapper {
  display: block;
  display: flex;
  flex-direction: column-reverse;
}
.portfolio figure img {
  margin: 0 auto;
  /* width: auto;
  height: 60lvh;
  aspect-ratio: auto; */
}
.portfolio-navigation {
  position: fixed;
  z-index: 1;
  top: 50lvh;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1280px;
  font-size: 2em;
}
.portfolio-navigation ul, 
.portfolio-navigation li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.portfolio-navigation ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}
.portfolio-navigation ul:has(.nav-next) {
  justify-content: right;
}
.portfolio-navigation ul:has(.nav-previous) {
  justify-content: left;
}
.portfolio-navigation ul:has(.nav-previous+.nav-next) {
  justify-content: space-between;
}
.portfolio-navigation li {
  width: 25%;
}
.portfolio-navigation .nav-previous {
  padding-left: 2.5%;
}
.portfolio-navigation .nav-next {
  padding-right: 2.5%;
  text-align: right;
}
.portfolio-navigation a:link, 
.portfolio-navigation a:visited, 
.portfolio-navigation a:hover, 
.portfolio-navigation a:focus, 
.portfolio-navigation a:active {
  color: #000;
  text-decoration: none;
}

.wp-block-contact-form-7-contact-form-selector {
  border: 1px solid #000;
  display: inline-block;
}
.wp-block-contact-form-7-contact-form-selector > .wpcf7 {
  display: none;
  margin: 0;
  padding: 1em 2em;
}
.wp-block-contact-form-7-contact-form-selector button {
  margin: 0;
  padding: 1em 2em;
  border: 0;
  display: inline-block;
}
button, input[type="submit"] {
  margin: 0;
  padding: 1em 2em;
  border: 1px solid #222;
  border-radius: 0;
  appearance: none;
  color: #fff;
  background: #222;
}
p input[type="submit"] {
  font-size: 0.800em;
}
.wpcf7 input[type="text"], 
.wpcf7 input[type="email"], 
.wpcf7 input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: .25em .5em;
  border: 1px solid #000;
  border-radius: 0;
  appearance: none;
}
.open button {
  display: none;
}
.open > .wpcf7 {
  display: block;
}

main .wpcf7-not-valid-tip {
  font-size: .875em;
}
main .wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 0;
  border: 0;
}

.wp-block-columns.bio {
  padding: 2em;
  background: #d5d5d5;
  align-items: center !important;
  justify-content: space-between;
  gap: 2em;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; }
.embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}
@font-face {
  font-family: 'fontello';
  src: url('../font/fontello.eot?50222288');
  src: url('../font/fontello.eot?50222288#iefix') format('embedded-opentype'),
       url('../font/fontello.woff2?50222288') format('woff2'),
       url('../font/fontello.woff?50222288') format('woff'),
       url('../font/fontello.ttf?50222288') format('truetype'),
       url('../font/fontello.svg?50222288#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../font/fontello.svg?50222288#fontello') format('svg');
  }
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: never;

  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  /* margin-right: .2em; */
  text-align: center;
  /* opacity: .8; */

  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;

  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;

  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;

  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */

  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.icon-left:before { content: '\e800'; } /* '' */
.icon-right:before { content: '\e801'; } /* '' */
.icon-spotify:before { content: '\f1bc'; } /* '' */
/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only, .screen-reader-text {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus,
.screen-reader-text.focusable:active,
.screen-reader-text.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 1441px) {

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

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

}
@media only screen and (max-width: 781px) {
  
}
@media only screen and (max-width: 768px) {
  body {
    font-size: calc(10px + 6 * ((100vw - 320px) / 680));
  }
  #site-header, #contacts, main {
    padding-left: 10%;
    padding-right: 10%;
  }
  #site-header, #contacts {
    justify-content: center;
  }
  #site-header {
    padding-top: 6.25vw;
  }
  .site-logo {
    width: 60%;
    margin-bottom: 1.5625vw;
    margin-bottom: 6.25vw;
  }
  #contacts .contacts {
    width: 90%;
    justify-content: center;
  }
  #contacts p {
    text-align: center;
  }
  #site-nav {
    width: 100%;
    justify-content: center;
  }
  #site-nav .menu {
    font-size: 1em;
    gap: 1em;
    justify-content: center;
  }
  .wp-block-contact-form-7-contact-form-selector.open {
    display: block;
  }
  /* .portfolio figure img {
    margin: 0 auto;
    width: auto;
    height: auto;
    aspect-ratio: auto;
  } */
  #site-nav .bogo-language-switcher {
    display: none;
  }
  #contacts .bogo-language-switcher {
    display: flex;
  }
}
@media only screen and (max-width: 450px) {
  body {
    font-size: calc(12px + 6 * ((100vw - 320px) / 680));
  }
  .portfolio {
    max-width: unset
  }
  
  
}


@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

