/* Navbar */
body {
	position: relative;
}

body.body_menu-active, body.body_modal-active {
	overflow: hidden;
}

body.body_menu-active:after {
	content: '';
	z-index: 500;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	animation: body-animation 0.5s ease-in;
	background-color: rgba(0,0,0,0.5);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.sr-only::after, .sr-only::before {
  display: none;
}

@keyframes body-animation {
	from {opacity: 0;}
	to {opacity: 1;}
}

.navbar {
	z-index: 1000;
}

.navbar__menu-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.navbar__toggle {
	cursor: pointer;
	font-size: 1.5rem;
}

.navbar__toggle_active + .navbar__menu {
	right: 0;
}

.navbar__menu {
	text-align: left;
	right: -100%;
	position: fixed;
	bottom: 0;
	top: 0;
	width: 85%;
	background: var(--background-color);
	margin: 0;
	padding:0;
	list-style: none;
	transition: 0.4s;
	overflow: auto;
}

.navbar .menu-item {
	display: flex;
	flex-direction: column;
}

.navbar .menu-item a {
	flex-grow: 1;
	text-decoration: none;

}

.custom-logo-link {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.custom-logo {
	width: auto;
	display: block;
}

/* Carousel */

.carousel {
	position: relative;
}

.carousel__viewport {
	overflow: hidden;
}

.carousel__container {
	display: flex;
}

.carousel__button {
	display: block;
	cursor: pointer;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	outline: none;
	color: currentColor;
	font-size: 2rem;
}

.carousel__button_disabled {
	display: none;
}

.carousel__button_prev {
	left: 0;
}

.carousel__button_next {
	right: 0;
}

/* Gallery modal */
.gallery__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--background-color);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery__modal-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery__modal img {
	display: block;
}

.gallery__close-modal {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  background: none;
  color: var(--body-color);
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}