img.afisha {
    box-shadow: 0 4px 8px 0 #bcbbba52;
    border-radius: 8px;
    cursor: zoom-in;
}
@media (max-width: 720px) {
    .btn_calendar>button.add-to-calendar-btn.btn.btn-primary {
        font-size: 10px;
        padding: 2px 5px !important;
        opacity: .85;
    }
}
@media (min-width: 767.98px) {
    button.add-to-calendar-btn.btn.btn-primary {
        white-space: nowrap;
        padding: 4px 10px;
        background: #4285f4;
        opacity: .8;
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        /* margin-top: 15px; */
    }
}

@media only screen and (max-width:720px) {
	i.fa.fa-eye.views.event {
		margin-bottom: 10px;
		text-align: right;
		color: #bdb9b9!important;
		right: 0px;
		top: -6px;
		position: absolute;
		top: 42px;
		right: 10px;
	}
}

@media only screen and (min-width:720px) {
    i.fa.fa-eye.views.event {
        max-width: 750px;
        margin-top: -15px!important;
        text-align: right;
        color: #bdb9b9!important;
        display: block;
    }
}

/* Стили контейнера, который будет создан динамически */
.social-dropdown {
    position: relative;
    display: inline-block;
    float: right;
}

#socialBtn {
    font-size: 90%;
    padding: 2px 6px 1px;
    cursor: pointer;
    border-radius: 2px !important;
    border: 1px solid #2d6ebc;
    margin: 8px 10px;
    color: #fff;
    background: linear-gradient(to right, #e040fb, #00bcd4) !important;
    opacity: 0.4;
    transition: opacity 0.5s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

#socialBtn:hover {
    opacity: 1;
}

#socialBtn i {
    font-size: 12px;
}

/* Динамически создаваемое меню */
.social-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 1000;
    display: none;
    margin-top: 2px;
}

.social-popup.show {
    display: block;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стрелка */
.social-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.02);
}

.social-popup a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.social-popup a i {
    width: 20px;
    font-size: 14px;
    color: #00bcd4;
}

.social-popup a:hover {
    background: #f5f5f5;
    padding-left: 22px;
}

.social-popup a:hover i {
    color: #e040fb;
}

.social-popup .divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

.img_news img {
    max-width: 800px;
}

/* Адаптив */
@media (max-width: 720px) {
    #socialBtn {
        font-size: 10px;
        margin-top: 4px;
        padding: 2px 8px 1px;
    }
    
    .social-popup {
        min-width: 160px;
    }
    
    .social-popup a {
        padding: 8px 14px;
        font-size: 11px;
    }
}

p.img_descr.preview {
    bottom: 0;
    font-weight: 700;
    right: 10px;
    color: #000;
    background-color: #fbfbfb9e;
    border-radius: 4px;
    cursor: default;
}

@media (max-width: 480px) {
    #socialBtn span {
        display: none;
    }
    #socialBtn {
        padding: 2px 8px;
    }
}

#openModalBtn {
	font-size: 90%;
	float: right;
	padding: 2px 6px 1px;
	cursor: pointer;
	border-radius: 2px!important;
	border: 1px solid #2d6ebc;
	margin: 8px 10px;
	color: #fff;
	background: linear-gradient(to right, #e040fb, #00bcd4) !important;
	opacity: .4;
	transition: opacity 0.5s ease;
}

@media (max-width:720px) {
	#openModalBtn {
		font-size: 10px;
		margin-top: 4px;
		padding-top: 1px;
	}
}

button#openModalBtn:hover {
	color: #fff;
	opacity: 1;
}

div#calendar_t>.fc-header-toolbar.notranslate.fc-toolbar.fc-toolbar-ltr {
    padding-top: 2px;
}

.first-image-container {
  display: block;
  position: relative;
  background: #f5f5f5;
  min-height: 300px; /* мобильная версия */
}

@media (min-width: 720px) {
  .first-image-container {
    min-height: 400px; /* десктоп версия */
  }
}

.first-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.first-image-container.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fc-daygrid.fc-dayGridMonth-view.fc-view {
	border: 2px solid #1e5799;
	border-radius: 0 0 5px 5px;
}

.cooments_vj_telegram.style_vj.clickable_vj {
	margin-left: 10px;
}

.tlg {
	margin-bottom: 20px;
	background: #fbfbfb;
	border: 1px solid #9e9e9e6b;
	border-radius: 7px;
	padding: 10px;
	text-align: justify;
}

@media only screen and (min-width:720px) {
	.tlg {
		margin-bottom: 20px;
		background: #fbfbfb;
		border: 1px solid #9e9e9e6b;
		border-radius: 7px;
		padding: 20px;
		text-align: justify;
	}

	div#news_random {
		width: 60%;
	}
}

em {
	font-style: normal;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-family: "Roboto","Helvetica","Arial",sans-serif!important;
}

.img_news {
    cursor: zoom-in;
    position: relative;
    color: #fff;
    text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
}

.overlay {
	position: fixed!important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9)!important;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999 !important;
}

.enlarged_img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: pointer;
}

.caption-overlay {
	width: fit-content!important;
	background-color: rgba(0,0,0,.4);
	padding: 5px;
	text-align: center;
	position: absolute;
	bottom: 5px;
	left: 0;
	right: 0;
	color: white;
	text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
}

@media only screen and (max-width:720px) {
	.overlay-content {
		position: relative;
		line-height: 15px;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	p.caption-overlay {
		background-color: rgba(0,0,0,.4);
		padding: 5px;
		width: 60%;
		text-align: center;
		margin: 0 auto;
		padding: 5px;
		line-height: 10px;
		font-size: 9.5px;
	}

	p.img_descr {
		cursor: default;
		border: 1px solid #656363;
		background-color: rgba(0,0,0,.4);
		padding: 5px;
		overflow: hidden;
		max-width: 80%;
		font-size: 9.5px;
		line-height: 1.2em;
		position: absolute;
		bottom: 5px;
		right: 10px;
		text-align: left;
		letter-spacing: 0.05em;
        color: white;
	}
}

@media only screen and (min-width:720px) {
	.overlay-content {
		position: relative;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
        max-width: 95%;
	}

	p.caption-overlay {
		width: 60%;
		text-align: center;
		margin: 0 auto;
		bottom: 20px;
	}

	p.img_descr {
		cursor: default;
		border: 1px solid #656363;
		background-color: rgba(0,0,0,.4);
		padding: 5px;
		overflow: hidden;
		max-width: 80%;
		font-size: 9.5px;
		line-height: 1.2em;
		position: absolute;
		bottom: 10px;
		right: 20px;
		text-align: left;
		letter-spacing: 0.05em;
        color: white;
	}
}

.map-container {
	margin-top: 10px;
	display: none;
	width: 100%;
	height: 400px;
	position: relative;
}

@media (max-width: 720px) {
	.map-container {
		margin-top: 5px;
		margin-left: -70px;
		width: auto;
		height: 400px;
		position: relative;
	}
}

@media (max-width: 720px) {
	.btn_calendar {
		display: contents;
		top: -15px;
		text-align: left;
		position: absolute;
	}
}

.info-container {
	font-size: 10px;
	max-width: 50%;
	top: 10px;
	left: 10px;
	padding: 8px;
}

h3#event-title {
	font-size: 13px;
}

p#event-coordinates {
	text-align: left;
	font-size: 12px;
	margin-top: 10px;
}

button.copy-coordinates {
	padding: 0 2px;
}

.copy-message {
	display: none;
	color: red;
	font-size: 9px;
	position: absolute;
	top: 5px;
	left: 10px;
} 

#map {
	width: 100%;
	height: 100%;
}

.info-container {
	font-size: 12px;
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: white;
	padding: 10px;
	border: 1px solid #ccc;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
	background: #fff url(/images/bg-body.jpg) 50% 0 repeat;
}

.close-info {
	position: absolute;
	top: 5px;
	right: 5px;
	font-size: 18px;
	cursor: pointer;
	background: none;
	border: none;
}

.close-map {
	position: absolute;
	top: 0px;
	right: 0px;
	cursor: pointer;
}

.copy-coordinates {
	cursor: pointer;
}

.copy-message {
	display: none;
	color: red;
	font-size: 14px;
	position: absolute;
	top: 5px;
	left: 10px;
}

span.map-link {
	cursor: pointer;
	font-weight: 600;
	color: #e73c3c;
}

.content_event li {
	list-style-type: square !important;
	margin-left: 25px;
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

@media (min-width: 767.98px) {
	button.add-to-calendar-btn.btn.btn-primary {
		white-space: nowrap;
		padding: 4px 10px;
		background: #4285f4;
		opacity: .8;
		color: white;
		border: none;
		border-radius: 3px;
		cursor: pointer;
        /* margin-top: 15px; */;
	}
}

@media (max-width: 767.98px) {
	button.add-to-calendar-btn.btn.btn-primary {
    /* margin-top: 10px; */;
	}

	table.afisha_pr {
		margin-top: 10px;
	}

	.custom-responsive-table thead {
		display: none;
	}

	.custom-responsive-table tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid #dee2e6;
		padding: 0.5rem;
	}

	.custom-responsive-table td {
		display: block;
		text-align: left;
		padding-left: 50%;
		padding-top: 1.2rem;
 /* Добавлен верхний отступ, чтобы освободить место под label */
		border: none;
		border-bottom: 1px solid #dee2e6;
		white-space: normal;
 /* Позволяет тексту переноситься */;
	}

	.custom-responsive-table td::before {
		content: attr(data-label);
		left: 0.75rem;
		top: 0.5rem;
		width: 45%;
		padding-right: 1rem;
		white-space: nowrap;
		font-weight: bold;
		color: #495057;
	}

	.table-responsive>.table>tbody>tr>td {
		white-space: normal !important;
	}
}

p#event-coordinates {
	margin-top: 15px;
	text-align: left;
	font-size: 11px;
}

.info-container {
	position: absolute;
	top: 10px;
	right: 10px;
	background: white;
	padding: 12px;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	z-index: 1000;
	max-width: 230px;
	margin-top: 10px;
}
.fotorama {
    display: inline-grid;
    width: 100% !important;
    min-width: 1px;
    overflow: hidden;
}