/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}
html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  *,
  *:before,
  *:after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
    margin: 0;
    padding: 0;
  }
  
  *:focus {
    outline: transparent;
  }
  
  body,
  html {
    width: 100%;
  }
  
  a,
  button,
  input[type="submit"] {
    cursor: pointer;
  }
  
  input[type="text"],
  button {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
  }* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    color: inherit;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none
}

body {
    background: #FFEED3;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
}

.flex-row,
.flex-col {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

.flex-col {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column wrap;
    flex-flow: column wrap
}

#top {
    width: 100%;
    min-height: 160px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    text-shadow: 0 0 2px #F90;
    font-size: 1.2em;
}

#top::after {
    content: "";
    background-image: url(https://mebelvector.com/static/images/headbg.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

#top>div.flex-row,
#top>p {
    width: 220px
}

#top>p {
    line-height: 2em;
    text-align: center;
}

#top>div.flex-row a {
    margin: 7px
}

#top a:hover {
    color: #900;
    text-shadow: 0 0 6px #F90
}

#logo {
    display: block;
    width: 100%;
    max-width: 294px;
    height: 140px;
    position: relative;
}

#logo img {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feGaussianBlur in="SourceAlpha" stdDeviation="1" /><feOffset dx="1" dy="2" result="offsetblur" /><feFlood flood-color="rgba(0,0,0,1)" /><feComposite in2="offsetblur" operator="in" /><feMerge><feMergeNode /><feMergeNode in="SourceGraphic" /></feMerge></filter></svg>#filter');
    -webkit-filter: drop-shadow(0 1px 1px #000);
    filter: drop-shadow(0 1px 1px #000);
}

#top-menu,
.toggle-sub {
    box-shadow: 0 2px 10px #000;
    transition: all .3s
}

#top-menu ul,
.toggle-sub {
    background-image: url(https://mebelvector.com/static/images/wood.jpg);
    align-items: center;
}

#top-menu li {
    padding: 8px
}

#top-menu a,
h1,
.toggle-sub {
    text-transform: uppercase;
    font-weight: 300;
    text-shadow: 0 1px 0 #FFF, 0 0 2px #F90;
    -webkit-transition: text-shadow .5s;
    transition: text-shadow .5s
}

#top-menu a:hover,
.toggle-sub:hover {
    text-shadow: 0 1px 0 #FFF, 0 0 2px #F90, 0 0 4px #F90
}

.toggle-sub {
    display: none
}

#patties {
    cursor: pointer;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    width: 35px;
    height: 35px;
    z-index: 1;
}

.bar1,.bar2,.bar3 {
    width: 35px;
    height: 3px;
    background-color: #000;
    box-shadow: 0 0 2px #F90;
    margin: 6px 0;
    -webkit-transition: 0.4s;
    transition: 0.4s
}

.change {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg)
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px,5px);
    transform: rotate(-45deg) translate(-9px,5px)
}

.change .bar2 {
    opacity: 0
}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px,-4px);
    transform: rotate(45deg) translate(-8px,-4px)
}

@media screen and (max-width: 850px) {
    .toggle-sub {
        text-align: center;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        font-size: 18px;
        cursor: pointer;
        padding: 5px 0;
    }

    #top-menu ul {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        text-align: center;
        transition: all .3s
    }

    #top-menu ul.show {
        max-height: 400px
    }

    #top-menu li {
        padding: 15px 0
    }

    #top>div.flex-row {
        padding: 20px 0
    }
}

main {
    overflow: hidden;
    min-height: calc(100vh - 265px);
}

h1 {
    margin: 15px;
    width: calc(100% - 30px);
    text-align: center;
    z-index: 4;
}

.text {
    background-image: url(https://mebelvector.com/static/images/wood.jpg);
    background-attachment: fixed;
    padding: 40px 15px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.text::after {
    content: "";
    background: rgba(255, 197, 120, .5);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    -webkit-box-shadow: inset 0 25px 35px -18px #000, inset 0 -25px 35px -18px #000;
    box-shadow: inset 0 25px 35px -18px #000, inset 0 -25px 35px -18px #000;
    z-index: -1;
    pointer-events: none;
}

.text>div {
    width: 100%;
    max-width: 1200px;
    color: #000;
    line-height: 1.8em;
    -ms-flex-item-align: center;
    align-self: center;
    z-index: 4;
}

.text>p {
    font-size: 24px;
    text-align: center;
    width: 100%;
    z-index: 5;
}

/* Footer */

footer {
    width: 100%;
    min-height: 70px;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    align-items: center;
    flex-grow: 1;
    padding: 40px 15px;
    margin: 0 auto;
    background-image: url(https://mebelvector.com/static/images/wood.jpg);
    background-attachment: fixed;
    position: relative;
}

footer::after {
    content: "";
    background: rgba(255, 197, 120, .5);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: 2;
    -webkit-box-shadow: inset 0 20px 30px -15px #000;
    box-shadow: inset 0 20px 30px -15px #000;
    pointer-events: none;
}

footer p {
    z-index: 4
}

#to-top {
    display: none;
    position: fixed;
    left: 2vw;
    bottom: 2vh;
    width: 40px;
    height: 40px;
    background-size: 60% auto;
    background-color: #c6803c;
    color: transparent;
    opacity: .5;
    filter: invert(1);
    transform: rotate(270deg);
    transition: all .3s;
    border-radius: 10px;
    z-index: 10
}

#to-top svg {
    transform: scale(.6)
}

#to-top:hover {
    opacity: 1;
    filter: invert(1) brightness(1.5)
}

#signature {
    padding: 0;
    margin: 0;
    max-width: 160px;
    text-align: center;
    font-size: .7em;
    line-height: normal;
    line-height: initial;
}

#signature a {
    font-size: 1.1em;
    line-height: normal;
    line-height: initial;
}

#signed {
    color: red;
    text-shadow: #000 0 1px 1px;
    font-style: italic;
}

footer a,
footer p {
    margin: 10px 0;
    -ms-flex-item-align: center;
    align-self: center;
    font-size: .9em;
    max-width: 250px;
    text-align: center;
}

@media screen and (max-width: 500px) {

    footer a,
    footer p {
        width: 100%;
        max-width: 100%
    }

    footer p:last-child {
        margin-bottom: 20px
    }
}

/* End footer */

a,
a:active,
a:visited {
    color: inherit;
    text-decoration: none
}

.paragraph {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-bottom: 10px;
}

.paragraph>a {
    margin: 0 5% 10px 5%;
    text-align: center;
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
}

.paragraph>p {
    width: 60%;
}

.paragraph>p>a {
    color: blue;
    text-decoration: underline;
}

.paragraph>div.swipe-gallery {
    margin: 0 5%;
    width: 20%;
    overflow: hidden;
}

@media screen and (max-width: 800px) {
    .paragraph>p {
        width: 90%;
        margin: 0 4%;
    }

    .paragraph>div.swipe-gallery {
        width: 90%;
        margin: 4%;
    }
}

.big-pic {
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.big-pic>img {
    max-height: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.publisher {
    width: 260px;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.hidden {
    position: fixed;
    left: -7000px;
}.text p {
    font-size: 1.25rem
}

.text > div {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#subcats {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    gap: 20px;
    align-items: center
}

#subcats li {
    position: relative;
    width: 240px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background: #AAA
}

#subcats li img, #subcats li span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

#subcats li span {
    width: 100%;
    font-size: 1.25rem;
    color: white;
    text-shadow: 0 2px 5px black;
    max-width: 100%
}

.swipe-gallery {
    padding: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap
}

.swipe-gallery figure {
    display: inline-block; /* This will make the figure width fit its content */
    max-width: 100%; /* Ensures that the figure doesn't exceed the width of its container */
}

.swipe-gallery img {
    border-radius: 4px;
    display: block; /* Remove any default inline spacing */
    max-width: 100%; /* Make the image responsive */
    height: auto; /* Maintain the aspect ratio of the image */
}

.swipe-gallery figcaption {
    display: block;
    max-width: 180px; /* Set this to match the maximum width of the image */
    word-wrap: break-word;
}