/*
Theme Name: Giedroyc
Theme URI: https://giedroyc.penbelarus.org
Author: penbelarus.org
Author URI: https://penbelarus.org/
Description: 
Version: 1.0
License: 
Text Domain: giedroyc
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, 
address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, 
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}

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

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

html, body {
	width: 100%;
	min-height:100%;
	font-size:16px;
    line-height: normal;
	font-weight: normal; 
	font-style: normal;
    background-color:#ffffff;
    min-width: 320px;
}

body {
  padding:0;
  margin:0;  
}

/* Footer down */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* end Footer down */

header, main, footer {
  padding: 20px;
}

/* dmi */

.dmi-grid {
  max-width: 1440px;
  margin: 0 auto;
}

/* Row */

.dmi-grid-row {
  display: flex;
  flex-wrap: wrap;
}

/* end Row */

/* Col */

.dmi-grid-col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  width: 100%;
}

.dmi-grid-col-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.dmi-grid-col-1 {
}

.dmi-grid-col-2 {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}

.dmi-grid-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.dmi-grid-col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.dmi-grid-col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.dmi-grid-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.dmi-grid-col-7 {
}

.dmi-grid-col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.dmi-grid-col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.dmi-grid-col-10 {
}

.dmi-grid-col-11 {
}

.dmi-grid-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* end Col */

/* Flex */

.dmi-flex {
  display: flex;
}

.dmi-flex-row {
  flex-direction: row;
}

.dmi-flex-column {
  flex-direction: column;
}

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

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

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-center {
	justify-content:center;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-center {
  align-items: center;
}

.align-items-baseline {
  align-items: baseline;
}

.align-items-stretch {
  align-items: stretch;
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

/* Link */

nav a, .dmi-grid-content a:hover, .single .dmi-grid-content a:hover, .archive .dmi-grid-content a:hover {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.dmi-grid-jury a {
  text-decoration: underline;
}

.dmi-grid-jury a:hover {
  text-decoration: none;
}

.dmi-single-place-number a {
  text-decoration: none!important;
}

/* Header */

header {
  width:100%;
  position: relative;
  z-index: 9999;
  /*position: fixed;*/
}

header .dmi-grid-row {
  justify-content: space-between;
  align-items: center;
}

header .logo {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

header .logo-current {
  width: 150px;
  height: 50px;
}

header .logo-2025 {
    width: 150px;
    height: 50px;
}

@media screen and (max-width: 768px) {
    header .logo-current {
        width: 120px;
        height: 40px;
    }

    header .logo-2025 {
        width: 120px;
        height: 40px;
    }
}

header .logo-2023, header .logo-2024 {
  width: 200px;
  height: 52px;
}

header .logo-2021, header .logo-2022 {
  width: 54px;
  height: 70px;
}

header .logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 1024px) {
  header .dmi-grid-col-auto:first-child {
    flex:1 1 auto;
  }
}

/* nav */

nav ul { /*.menu-items */
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-primary {
  font-size: 16px;
  text-transform: lowercase;
  display: flex;
  flex-direction: row;
  align-items: center;
}

header .menu-primary ul.menu-items {
  display: flex;
  flex-direction: row;
}

@media screen and (max-width: 1024px) {
  header .menu-primary ul.menu-items {
    display: none;
  }
}

.menu-primary ul.menu-items li.menu-item {
  padding: 5px 10px;
}

header .menu-primary ul.menu-items > li.menu-item:first-child {
  padding-left: 0;
}

header .menu-primary ul.menu-items > li.menu-item:last-child {
  padding-right: 0;
}

.dmi-modal .menu-primary {
  margin-top: 30px;
  font-size: 18px;
}

.dmi-modal .menu-primary ul.menu-items {
  display: flex;
  flex-direction: column;
}

.dmi-modal .menu-primary ul.menu-items li.menu-item {
  padding-bottom: 10px;
}

.dmi-modal .menu-primary ul.menu-items li.menu-item-has-children ul {
  padding-top: 10px;
  padding-left: 10px;
}

.dmi-modal .menu-primary ul.menu-items li.menu-item-has-children {
  padding-bottom: 0;
}

header .menu-primary ul.menu-items li.menu-item-has-children {
  position: relative;
  padding-right: 24px!important;
  background-image: url('assets/images/icons/icon-down.svg');
  background-position: right top 11px;
  background-repeat: no-repeat;
  background-size: 22px 12px;
}

header .menu-primary ul.menu-items li.menu-item-has-children:hover {
  background-image: url('assets/images/icons/icon-up.svg');
}

header .menu-primary ul.menu-items li.menu-item-has-children ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  flex-direction: column;
  align-items: flex-start;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgb(41 39 89 / 15%);
  padding: 10px 15px;
  z-index: 999;
}

header .menu-primary ul.menu-items li.menu-item-has-children:hover > ul.sub-menu {
  display: flex;
}

.menu-season {
  width: 180px;
  font-size: 16px;
  color: #ffffff;
  text-transform: uppercase;
}

.menu-season li.menu-item {
  padding: 8px 10px;
  background-color: #cb7952;
}

.menu-season .menu-season-title {
  text-align: center;
}

footer nav.menu-footer ul {
    display: flex;
    flex-direction: row;
    margin: 30px auto;
    font-weight: bold;
    justify-content: center;
    text-transform: uppercase;
    font-size: 14px;
}

footer nav.menu-footer ul li {
    padding: 0 20px;
}

.menu-season .menu-season-items {
  display: none;
  margin-top: 2px;
}

/* pagination */
.pagination {
  margin-top: 20px;
}

.pagination .page-numbers {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.pagination .prev, .pagination .next {
  text-transform: uppercase;
  font-size: 11px;
}

.pagination a.page-numbers {
  padding: 5px 10px;
}

.pagination .prev, .pagination .next {
  text-transform: uppercase;
  font-size: 11px;
  background-color: transparent!important;
  padding: 0!important;
}

.pagination .page-numbers li {
  margin: 0 5px;
}

/* Content */

.dmi-grid-content {
  margin: 40px auto 0;
  max-width: 1000px;
  line-height: 1.5;
}

.dmi-content {
  margin: 0 -15px 20px -15px;
}

.dmi-grid-content p {
  margin-bottom: 20px;
}

.dmi-grid-content p:last-child {
  margin-bottom: 0;
}

.dmi-col-content {
  padding: 0 15px;
}

.dmi-grid-content ul {
  margin: 0 20px;
  padding: 0 20px;
}

@media screen and (max-width: 768px) {
  .dmi-grid-content ul {
    margin: 10px 0;
  }
}


/* Single & Archive */

.dmi-single-thumbnail {
  position: relative;
}

.dmi-single-thumbnail img {
  max-width: 360px;
}

@media screen and (max-width: 1024px) {
  .dmi-single-thumbnail img {
    max-width: 260px;
  }
}

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

  .single .dmi-content, .archive .dmi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  
  .dmi-book-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .dmi-single-thumbnail img {
    max-width: 200px;
  }
}

.archive .dmi-single-thumbnail img {
  max-width: 160px;
}

.dmi-single-place-number {
  position: absolute;
  top: 10px;
  left: 10px;
}

.dmi-single-place-number span {
  margin-top: 5px;
  padding: 4px 10px;
  display: inline-block;
  text-align: center;
  font-size: 18px;
}

.dmi-single-place-number .prize_place_number {
  text-transform: lowercase;
}

.dmi-single-author {
  font-size: 24px;
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .dmi-single-author {
    font-size: 18px;
    margin-top: 10px;
  }
}

.archive .dmi-single-author {
  font-size: 18px;
  margin-top: 5px;
}

.dmi-single-publisher {
  font-size: 18px;
  margin-top: 20px;
  color: #335243;
}

@media screen and (max-width: 768px) {
  .dmi-single-publisher {
    font-size: 16px;
    margin-top: 10px;
  }
}

.archive .dmi-single-publisher {
  font-size: 16px;
  margin-top: 10px;
}

.dmi-single-publisher span:after {
  content: ', ';
}

.dmi-single-publisher span:last-child:after {
  content: '';
}

.dmi-single-excerpt {
  font-size: 14px;
  margin-top: 20px;
}

.dmi-single-link {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 20px;
}

.dmi-button, .dmi-single-button {
  color: #ffffff!important;
  text-decoration: none;
  text-transform: uppercase;
  margin-right: 20px;
  font-size: 16px;
  padding: 6px 28px;
}

.dmi-button:hover, .dmi-single-button:hover {
  
  background-color: transparent;

}

/* Front */

.dmi-front-thumbnail {
}

.dmi-front-thumbnail img {
  display: block;
  max-width:100%;
  height: auto;
  margin-top: -150px;
}

@media screen and (max-width: 1024px) {
  .dmi-front-thumbnail img {
    max-width: 80%;
    margin-top: -20px;
  }
}

/* Title */

.dmi-grid-title {
  margin: 0 auto;
  text-transform: uppercase;
  text-align: center;
  font-size: 20px;
}

@media screen and (max-width: 768px) {
  .dmi-grid-title {
    font-size: 18px;
  }
}

.dmi-grid-title span {
  padding:10px 30px;
  display: inline-block;
}

.dmi-single-title, .dmi-archive-title {
  font-size: 36px;
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .dmi-single-title, .dmi-archive-title {
    font-size: 24px;
    margin-top: 10px;    
  }
}

.dmi-page-title {
  margin-top: 0;
  margin-bottom: 20px;
}

.archive .dmi-single-title {
  font-size: 22px;
  margin-top: 10px;
}

.dmi-archive-title {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.dmi-page-list {
  font-size: 24px;
  margin-bottom: 20px;
}


/* Card */

.dmi-grid-card, .dmi-grid-jury, .dmi-grid-partners {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.dmi-grid-laureate, .dmi-grid-nominees {
  justify-content: center;
}

.dmi-card {
  flex: 0 0 auto;
  width: auto;
  /*height:190px;*/
  margin: 4px;
}

.dmi-grid-laureate .dmi-card {
  margin: 4px 10px 4px 10px;
}

.dmi-card a {
  display: block;
  -webkit-box-shadow: 0px 0px 5px 2px rgb(149 148 148 / 30%);
  -moz-box-shadow: 0px 0px 5px 2px rgba(149,148,148,0.3);
  box-shadow: 0px 0px 5px 2px rgb(149 148 148 / 30%);
}

.dmi-card img {
  display: block;
  max-height: 190px;
  width: auto;
}

.list-nominees {
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-li {
  padding: 0 20px 20px 20px;
  width: 33%;
}

.dmi-card-place-number {
  text-align: center;
}

.dmi-card-place-number span {
  margin-top: 5px;
  padding: 4px 10px;
  display: inline-block;
  text-align: center;
  text-transform: lowercase;
}

/* Jury */

.dmi-jury {
  padding: 0 20px 10px 20px;
  max-width: 30%;
}

/*.dmi-jury img {
  display: block;
  margin: 0 auto 30px;
  max-width: 100%;
  height: auto;
}*/

.dmi-jury-image {
  width: 170px!important;
  height: 170px!important;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.dmi-jury-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.dmi-jury-title {
  font-size: 16px;
  text-transform: uppercase;
  padding: 0 20px;
  text-align: center;
}

.dmi-jury-description {
  font-size: 12px;
  margin-top: 5px;
  /*text-transform: lowercase;*/
  padding: 0 20px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .dmi-jury {
    width: 55%;
    max-width: 100%;
    padding-bottom: 30px;
    text-align: center;
  }
  
  .dmi-jury img {
    margin: 0 auto 20px;
    max-width: 90%;
    height: auto;
  }
}

/*@media screen and (max-width: 560px) {
  .dmi-jury img {
    max-width: 100%;
  }
}*/

@media screen and (max-width: 768px) {
  .dmi-jury {
    width: 100%;
  }
}

/* Partnetrs */

.dmi-partners {
    background-color: #ffffff;
    max-width: none;
    /*width: 100%;
    min-width: 100%;*/
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 0;
    margin-top: 40px;
}

.dmi-partners .dmi-grid-content {
    margin: 0 auto;
}

.dmi-partner {
    padding: 10px;
    width: 160px;
    height: 90px;
    background-color: #ffffff;
    margin: 10px;
}

@media screen and (max-width: 564px) {
    .dmi-partner {
        width: 130px;
        height: 72px;
        margin: 5px;
    }
}

.dmi-partner a {
    display: block;
    width: 100%;
    height: 100%;
}

.dmi-partner-image {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.dmi-partners-2024 .dmi-grid-partners:before {
    content: '';
    width: 100%;
}

.dmi-partners-2024 .dmi-partner-break:nth-child(4), 
.dmi-partners-2024 .dmi-partner-break:nth-child(14) {
    width: 100%;
}

/* User */

.dmi-user {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.dmi-user-avatar {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  flex: 0 0 150px;
}

.dmi-user-avatar-ring {
  overflow: hidden;
  border-radius: 50%;
}

.dmi-user-info .card-user-description:last-child {
  margin-top: 20px;
}

.dmi-user-info .card-user-description:last-child p {
  margin-bottom: 10px;
}

/* Focuspoint */

.focuspoint {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative!important;
}

.focuspoint img {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  display: block;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-height: none;
  max-width: none;
}

/* Footer */

footer {
  text-align: center;
  font-size: 16px;
}

footer .logo-current {
  max-width: 120px;
}

footer .logo {
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

footer .logo-2023, footer .logo-2024 {
  max-width: 150px;
}

footer .logo-2021, footer .logo-2022 {
  max-width: 70px;
}

footer .logo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.theme-copyright {
    margin-top: 20px;
    font-size: 12px;
}

/* Icon Menu */

.dmi-menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width:30px;
  height: 24px;
  cursor: pointer;
  margin-right: 20px;
}

.dmi-menu-icon li {
  width: 100%;
  height: 2px;
}

@media screen and (max-width: 1024px) {
  .dmi-menu-icon {
    display: flex;
  }
}

/* Icon Close */

.dmi-close-icon {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: none;
}

.dmi-close-icon li {
  position: absolute;
  display: block;
  width: 24px;
  height: 2px;
}

.dmi-close-icon li:first-child {
  top: 11px;
  transition: transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s, -webkit-transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
}

.dmi-close-icon li:last-child {
  top: 11px;
  transition: transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s, -webkit-transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
}

/* Table */

.dmi-table-container {
  overflow-x: auto;
  margin-bottom: 20px
}

.dmi-col-content table {
  width: 100%!important;
  border: 1px solid #d4d4d4;
  border-collapse: collapse;
}

.dmi-col-content table td {
  border: 1px solid #d4d4d4;
  font-size: 15px;
  padding: 5px 10px;
}

/* Full width and response iframe */

.dmi-iframe-video { 
	position: relative; 
	padding-bottom: 56.25%;
	height: 0; 
	overflow: hidden;
	margin-bottom:15px;
}

.dmi-iframe-content { 
	overflow-x: auto;
	margin-bottom:15px;
}

.dmi-iframe-content iframe {
  max-width: 100%;
}

.dmi-iframe-video iframe, .dmi-iframe-video object, .dmi-iframe-video embed, .dmi-iframe-video video { 
	position: absolute; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%;
}

.dmi-col-content iframe {
  display: block;
  margin: 0 auto;
}

.dmi-col-content .fb-post.fb_iframe_widget {
  display: block;
  margin: 0 auto;
  max-width: 500px;
}

.dmi-col-content .twitter-tweet.twitter-tweet-rendered, .dmi-col-content .instagram-media.instagram-media-rendered {
  margin: 0 auto!important;
}

.dmi-modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: #ffffff;
  width: 30%;
  box-shadow: 0px 0px 5px 0px rgb(41 39 89 / 15%);
  overflow-y: auto;
  align-items: flex-start!important;
  transition: .7s linear;
  margin-left: -110%!important;
  padding: 20px 30px 30px 30px;
  z-index: 9999;
}

.dmi-modal-active {
  transition: .7s linear;
  margin-left: 0!important;
}

@media screen and (max-width: 1024px) {
  .dmi-modal {
    width: 45%;
  }
}

@media screen and (max-width: 768px) {
  .dmi-modal {
    width: 75%;
  }
}

.dmi-modal-header {
  justify-content: space-between;
  align-items: center;
}

.dmi-modal .logo {
  display: block;  
}

.dmi-modal .logo-current img {
  width: auto;
  height: 30px;
}

.dmi-modal .logo-2021, .dmi-modal .logo-2022 {
  width: 50px;
}

.dmi-modal .logo-2021 img, .dmi-modal .logo-2022 img {
  max-width: 100%;
  height: auto;
  display: block;
}

.dmi-close {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.dmi-close span {
  position: absolute;
  display: block;
  width: 24px;
  height: 2px;
}

.dmi-close span:first-child {
  top: 11px;
  transition: transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s, -webkit-transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s;
  -webkit-transform: rotate(
45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
}

.dmi-close span:last-child {
  top: 11px;
  transition: transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s, -webkit-transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s;
  -webkit-transform: rotate(
-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
}

.overflow-hidden {
  overflow: hidden;
}