/* Gallery - Галерия  */

#albums {
	display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
    margin: 0;
    padding: 0;
    list-style-type: none;
    justify-content: center;
}
#albums > div {
	text-align: center; margin-bottom: 15px;
}
#albums > div > a {
	border: 1px solid #ffcc99;
    display: inline-flex;
    padding: 5px;
	min-width: 200px; min-height: 200px;
}
#albums > div > a > p {
	position: absolute; text-shadow: 2px 2px 4px #000; color: #fff; bottom: 10px; left: 10px;
	font-weight: bold; font-size: 11pt;
}

.gallery{ margin-top:10px; }
.gallery div.image_info { 
	opacity: 0.7;
	border-top: 1px solid #ddd;
	background: #fff;
	color: #000;
	position: relative;
	top: -35px;
	text-decoration: none;
	font-weight: bold;
    padding: 3px 5px;
    text-align: center;
}
.gallery > div:first-of-type {
	text-align: center;
}
.gallery ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0 15px;
	margin:0; padding:0; list-style-type:none;
	justify-content: center;
}
.gallery ul li {
	position: relative;
	width: 200px;
	display: inline-block
}
.gallery ul li img {
	width: 100%;
	border-radius: 8px;
	cursor: pointer;
}
.gallery ul li .menu-btn {
	position: absolute;
    top: 5px;
    right: 5px;
    background: #ff7400;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
	border: 1px solid #ffcc99;
    box-shadow: 0px 2px 8px 0px #ff7400;
}
.gallery ul li .menu {
	display: none;
	position: absolute;
	top: 35px;
	right: 5px;
	background: white;
	border: 1px solid #ccc;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	overflow: hidden;
	font-weight: normal;
	z-index: 11;
}
.gallery ul li .menu button {
	display: block;
	width: 100%;
	background: none;
	border: none;
	padding: 10px;
	text-align: left;
	cursor: pointer;
	border-radius: 0;
}
.gallery ul li .menu button:hover {
	background: #007bff;
	color: #fff;
}
.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 200;
}
.modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	border-radius: 5px;
	z-index: 30000;
}

.close-modal {
	display: block;
	margin-top: 10px;
	padding: 5px 10px;
	background: #007bff;
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 3px;
}


#customConfirm {
    display: none;
    position: fixed;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
    max-width: 600px;
    z-index: 30000;
    justify-content: center;
    align-items: center;
}

.confirm-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
.confirm-box button {
    margin: 10px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
}
#confirmYes { background: green; color: white; }
#confirmNo { background: red; color: white; }