/* Стили галереи */

.bookstore_info {
    display: flex;
    flex-direction: row;
}
@media (max-width:800px) {
    .bookstore_info {
        flex-direction: column;
    }
}

.bookstore_item {
    display: flex;
    flex-direction: column;
}

.bookstore_item .bookstore_description p {
    text-indent: 0;
    margin-bottom: 0px;
}

.bookstore_description {
    font-size: 0.8em;
}

.gallery {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 5px;
    margin-top: 10px;
}

.gallery-img {
	width: 50px;
	height: 70px;
	object-fit: cover;
	cursor: pointer;
	border-radius: 5px;
	transition: transform 0.2s;
}

.gallery-img:hover {
	transform: scale(1.05);
}

.bookstore_info .gallery-img-first {
    width: 200px;
    height: 300px;
    margin-right: 25px;
    margin-bottom: 20px;
}

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

.modal-content {
	position: relative;
	text-align: center;
}

.modal-content img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
}

.close {
	position: absolute;
	top: 20px;
	right: 35px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
}

.prev, .next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	font-size: 30px;
	padding: 10px;
	cursor: pointer;
	border-radius: 50%;
	width: 50px;
	height: 50px;
}

.prev {
	left: 10px;
}

.next {
	right: 10px;
}