﻿body {
	background-image:url("bb.png");
	background-attachment:fixed;
}
#header {
	height:20%;
	color:#fcfcfc;
	text-align:center;
	width:100%;
	position:relative;
	top:0px;
	left:0px;
}
hr {
	position:absolute;
	top:65%;
	left:4%;
	width:92%;
}

#leftnav {
	float:left;
	color:#fcfcfc;
	height:55px;
	min-width:15%;
	max-width:45%;
	width:25%;
	position:fixed;
	top:25%;
	left:-2%;

}
#rightnav {
	float:right;
	color:#fcfcfc;
	height:55px;
	min-width:15%;
	max-width:45%;
	width:25%;
	position:fixed;
	top:25%;
	left:75%;

}

#article1 {
	background-color:rgba(87, 84, 84, 0.5);
	min-width:15%;
	max-width:70%;
	width:46%;
	padding:2%;
	position:absolute;
	top:25%;
	left:25%;
	font-size:110%;
	color:#fcfcfc;
}
#article3 {
	background-color:rgba(87, 84, 84, 0.5);
	width:96%;
	padding:2%;
	position:absolute;
	top:25%;
	left:2%;
	font-size:110%;
	color:#fcfcfc;
}
#lstrelka {
	width:3%;
	position:absolute;
	top:55%;
	left:23%;
}
#rstrelka {
	width:3%;
	position:absolute;
	top:55%;
	left:69%;
}
#articl {
	color:#fcfcfc;
	min-width:15%;
	max-width:70%;
	width:27%;
	position:absolute;
	top:27%;
	left:26%;
	font-size:14pt;
}
#text {
	color:#fcfcfc;
	min-width:15%;
	max-width:70%;
	width:25%;
	position:absolute;
	top:28%;
	left:44%;
	font-size:110%;
	
	
	
}
.gal:hover {
	position:absolute;
	top:2%;
	left:83%;
	width:15%;
	
}
.gal {
	position:absolute;
	top:4%;
	left:85%;
	width:10%;
	min-width:100px;
	max-width:3000px;
}
#strelka {
	position:absolute;
	top:70%;
	left:100%;
	
}
#strelka2 {
	position:absolute;
	top:70%;
	left:0%;
	
}
.img {
	width:85%;
	
}
a {
	margin-left:40px;
}
#one {
	position:fixed;
	top:36%;
	left:7%;
}
#two {
	position:fixed;
	top:58%;
	left:7%;
}
#three {
	position:fixed;
	top:80%;
	left:7%;
}
#four {
	position:fixed;
	top:36%;
	left:78%;
}
#five {
	position:fixed;
	top:58%;
	left:78%;
}
#six {
	position:fixed;
	top:80%;
	left:78%;
}
h1 {
	font-size:230%;
}
h2 {
	font-size:180%;
}
#tumba {
	position:relative;
	top:10px;
	left:10%;
	width:50%;
	
}
#dendy {
	position:relative;
	top:-250px;
	left:-17%;
	
	
	
}
#tumba1 {
	position:relative;
	top:0px;
	left:10%;
}
#articl1 {
	color:#fcfcfc;
	min-width:15%;
	max-width:70%;
	width:27%;
	position:absolute;
	top:13%;
	left:26%;
	font-size:14pt;
}
#d {
	width:40%;
	float:right;
	
	
}
{
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
}


.wrapper {
	height: 350px;
	margin: 100px auto 0;
	position: relative;
	width: 100%;
}

.slider {
	background-color: #ddd;
	height: inherit;
	overflow: hidden;
	position: relative;
	width: inherit;
	-webkit-box-shadow: 0 0 20px rgba(0, 0, 0, .5);
	-moz-box-shadow: 0 0 20px rgba(0, 0, 0, .5);
	-o-box-shadow: 0 0 20px rgba(0, 0, 0, .5);
	box-shadow: 0 0 20px rgba(0, 0, 0, .5);
}
.slides {
	height: inherit;
	position: absolute;
	width: inherit;
}

.slide1 { background-image: url(d1.jpg); }
.slide2 { background-image: url(p1.png); }
.slide3 { background-image: url(t1.jpg); }
.slide4 { background-image: url(v1.jpg); }
.slide5 { background-image: url(a1.jpg); }
.wrapper .controls {
	left: 50%;
	margin-left: -98px;
	position: absolute;
}

.wrapper label {
	cursor: pointer;
	display: inline-block;
	height: 8px;
	margin: 25px 12px 0 16px;
	position: relative;
	width: 8px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-o-border-radius: 50%;
	border-radius: 50%;
}

.wrapper label:after {
	border: 2px solid #ddd;
	content: " ";
	display: block;
	height: 12px;
	left: -4px;
	position: absolute;
	top: -4px;
	width: 12px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-o-border-radius: 50%;
	border-radius: 50%;
}
.wrapper label {
	cursor: pointer;
	display: inline-block;
	height: 8px;
	margin: 25px 12px 0 16px;
	position: relative;
	width: 8px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-o-border-radius: 50%;
	border-radius: 50%;
	-webkit-transition: background ease-in-out .5s;
	-moz-transition: background ease-in-out .5s;
	-o-transition: background ease-in-out .5s;
	transition: background ease-in-out .5s;
}

.wrapper label:hover, 
#slide1:checked ~ .controls label:nth-of-type(1),
#slide2:checked ~ .controls label:nth-of-type(2),
#slide3:checked ~ .controls label:nth-of-type(3),
#slide4:checked ~ .controls label:nth-of-type(4),
#slide5:checked ~ .controls label:nth-of-type(5) {
	background: #ddd;
}
.slides {
	height: inherit;
	opacity: 0;
	position: absolute;
	width: inherit;
	z-index: 0;
	-webkit-transform: scale(1.5);
	-moz-transform: scale(1.5);
	-o-transform: scale(1.5);
	transform: scale(1.5);
	-webkit-transition: transform ease-in-out .5s, opacity ease-in-out .5s;
	-moz-transition: transform ease-in-out .5s, opacity ease-in-out .5s;
	-o-transition: transform ease-in-out .5s, opacity ease-in-out .5s;
	transition: transform ease-in-out .5s, opacity ease-in-out .5s;
}

#slide1:checked ~ .slider > .slide1,
#slide2:checked ~ .slider > .slide2,
#slide3:checked ~ .slider > .slide3,
#slide4:checked ~ .slider > .slide4,
#slide5:checked ~ .slider > .slide5 {
	opacity: 1;
	z-index: 1;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  background: white;
  transition: transform 0.3s ease;
}

.item:hover {
  transform: translateY(-8px);
}

.item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.magnifier {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.magnifier:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.15);
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  max-width: 92%;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
}

.close:hover {
  color: #ff6666;
}