/* Daily Darshan – gallery, detail page and lightbox.
   Selectors are prefixed with .ivd so theme / Elementor kit styles don't leak in. */

.ivd {
	--ivd-red: #b72928;
	--ivd-red-dark: #7d1515;
	--ivd-gold: #f0a81c;
	--ivd-gold-dark: #c98600;
	--ivd-gold-soft: #fdf3dd;
	--ivd-border: #f1d9a6;
	--ivd-text: #3b2a20;
	--ivd-muted: #6b5a4e;
	--ivd-radius: 12px;
	--ivd-ratio: 3 / 4;
	--ivd-heading: "Marcellus", Georgia, serif;
	color: var(--ivd-text);
}

.ivd *,
.ivd *::before,
.ivd *::after {
	box-sizing: border-box;
}

.ivd .ivd-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.ivd .ivd-section {
	padding-top: 56px;
	padding-bottom: 72px;
}

/* Hero – same look as the site's page heroes (About, Services…): photo, radial overlay,
   20px corners, centred white Marcellus title. Kept shorter than those so the darshan
   photos below are visible without scrolling, even on small laptop windows. */
.ivd .ivd-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: max(220px, min(26vw, 340px, 42vh));
	padding: 40px 20px;
	overflow: hidden;
	border-radius: 20px;
	background-color: #472b20;
	background-image: var(--ivd-hero-img, none);
	background-position: center 30%;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.ivd .ivd-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(rgba(71, 43, 32, 0.83) 0%, rgba(0, 0, 0, 0) 100%);
	opacity: 0.7;
}

.ivd .ivd-hero--plain {
	background-image: linear-gradient(135deg, var(--ivd-red-dark), var(--ivd-red));
}

.ivd .ivd-hero__inner {
	position: relative;
	max-width: 1200px;
	animation: ivd-fade-up 1s ease both;
}

.ivd .ivd-hero__title {
	margin: 0 0 18px;
	font-family: var(--ivd-heading);
	font-size: clamp(34px, 4.5vw, 60px);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

@keyframes ivd-fade-up {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ivd .ivd-hero__inner {
		animation: none;
	}
}

.ivd .ivd-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.ivd .ivd-crumbs a {
	color: #fff;
	text-decoration: none;
}

.ivd .ivd-crumbs a:hover,
.ivd .ivd-crumbs a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.ivd .ivd-crumbs__sep {
	color: var(--ivd-gold);
	font-size: 11px;
}

/* Tabs */
.ivd .ivd-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 28px;
}

.ivd .ivd-tab,
.ivd .ivd-tab:hover,
.ivd .ivd-tab:focus {
	padding: 12px 26px;
	border: 1px solid var(--ivd-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ivd-text);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.2s, border-color 0.2s;
}

.ivd .ivd-tab:hover {
	border-color: var(--ivd-gold);
	background: var(--ivd-gold-soft);
}

.ivd .ivd-tab.is-active,
.ivd .ivd-tab.is-active:hover,
.ivd .ivd-tab.is-active:focus {
	border-color: var(--ivd-gold);
	background: linear-gradient(180deg, #f8b935, var(--ivd-gold));
	color: var(--ivd-text);
}

.ivd .ivd-tab:focus-visible {
	outline: 2px solid var(--ivd-red);
	outline-offset: 2px;
}

.ivd .ivd-heading {
	margin: 0 0 28px;
	font-family: var(--ivd-heading);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
	color: var(--ivd-red);
}

/* Cards */
.ivd .ivd-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.ivd .ivd-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ivd-border);
	border-radius: var(--ivd-radius);
	background: #fff;
	transition: box-shadow 0.25s, transform 0.25s;
}

.ivd .ivd-card:hover {
	box-shadow: 0 10px 24px rgba(125, 21, 21, 0.12);
	transform: translateY(-2px);
}

.ivd .ivd-card__media {
	display: block;
	aspect-ratio: var(--ivd-ratio);
	overflow: hidden;
	background: var(--ivd-gold-soft);
}

.ivd .ivd-card__img,
.ivd .ivd-photo__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.4s;
}

.ivd .ivd-card:hover .ivd-card__img,
.ivd .ivd-photo:hover .ivd-photo__img {
	transform: scale(1.04);
}

.ivd .ivd-card__ph {
	display: block;
	width: 100%;
	height: 100%;
}

.ivd .ivd-card__body {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
}

.ivd .ivd-card__text {
	min-width: 0;
}

.ivd .ivd-card__name {
	margin: 0 0 6px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ivd-red);
}

.ivd .ivd-card__date {
	margin: 0;
	font-family: var(--ivd-heading);
	font-size: 18px;
	line-height: 1.3;
	color: var(--ivd-text);
}

/* Buttons */
.ivd .ivd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.2s, color 0.2s;
}

.ivd .ivd-btn--pill,
.ivd .ivd-btn--pill:visited {
	padding: 8px 16px;
	border: 1px solid var(--ivd-gold);
	background: var(--ivd-gold-soft);
	color: var(--ivd-text);
	font-size: 13px;
	letter-spacing: 0.5px;
}

.ivd .ivd-btn--pill:hover,
.ivd .ivd-btn--pill:focus-visible {
	background: var(--ivd-gold);
	color: var(--ivd-text);
}

.ivd .ivd-btn--outline,
.ivd .ivd-btn--outline:focus {
	padding: 13px 32px;
	border: 1px solid var(--ivd-red);
	background: #fff;
	color: var(--ivd-red);
	font-size: 16px;
}

.ivd .ivd-btn--outline:hover,
.ivd .ivd-btn--outline:focus-visible {
	background: var(--ivd-red);
	color: #fff;
}

.ivd .ivd-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.ivd .ivd-more {
	margin-top: 36px;
	text-align: center;
}

.ivd .ivd-empty {
	margin: 24px 0;
	text-align: center;
	color: var(--ivd-muted);
}

/* Detail page */
.ivd .ivd-detail__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 28px;
}

.ivd .ivd-detail__title {
	margin: 0;
	font-family: var(--ivd-heading);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--ivd-gold-dark);
}

.ivd .ivd-detail__dash {
	color: var(--ivd-red);
}

.ivd .ivd-detail__sub {
	margin: 6px 0 0;
	font-size: 16px;
	color: var(--ivd-muted);
}

.ivd .ivd-pager {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ivd .ivd-pager__link,
.ivd .ivd-pager__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ivd-red);
	text-decoration: none;
}

.ivd .ivd-pager__link:hover {
	color: var(--ivd-red-dark);
	text-decoration: underline;
}

.ivd .ivd-pager__link.is-disabled {
	color: #e3c486;
	cursor: default;
}

.ivd .ivd-pager svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ivd .ivd-pager__current {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ivd-text);
}

.ivd .ivd-detail__desc {
	max-width: 820px;
	margin-bottom: 28px;
	line-height: 1.7;
}

.ivd .ivd-photos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ivd .ivd-photo {
	display: block;
	aspect-ratio: var(--ivd-ratio);
	overflow: hidden;
	border-radius: 10px;
	background: var(--ivd-gold-soft);
	cursor: zoom-in;
}

.ivd .ivd-photo:focus-visible {
	outline: 3px solid var(--ivd-gold);
	outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
	.ivd .ivd-cards,
	.ivd .ivd-photos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ivd .ivd-section {
		padding-top: 36px;
		padding-bottom: 48px;
	}

	.ivd .ivd-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.ivd .ivd-photos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ivd .ivd-tab,
	.ivd .ivd-tab:hover,
	.ivd .ivd-tab:focus {
		padding: 10px 18px;
		font-size: 15px;
	}

	.ivd .ivd-pager {
		width: 100%;
		justify-content: space-between;
		gap: 8px;
	}
}

@media (max-width: 560px) {
	.ivd .ivd-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Lightbox (appended to <body>, also carries .ivd for the variables) */
html.ivd-lock,
html.ivd-lock body {
	overflow: hidden;
}

.ivd.ivd-lb {
	position: fixed;
	inset: 0;
	z-index: 2147483647; /* Same as the admin bar on this site; later in the DOM, so on top. */
	display: none;
	flex-direction: column;
	background: rgba(18, 10, 6, 0.94);
	color: #fff;
}

.ivd.ivd-lb.is-open {
	display: flex;
}

.ivd-lb .ivd-lb__bar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
}

.ivd-lb .ivd-lb__count {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.ivd-lb .ivd-lb__tools {
	display: flex;
	gap: 4px;
}

.ivd-lb .ivd-lb__btn,
.ivd-lb .ivd-lb__btn:hover,
.ivd-lb .ivd-lb__btn:focus,
.ivd-lb .ivd-lb__nav,
.ivd-lb .ivd-lb__nav:hover,
.ivd-lb .ivd-lb__nav:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	box-shadow: none;
	cursor: pointer;
	text-decoration: none;
}

.ivd-lb .ivd-lb__btn:hover,
.ivd-lb .ivd-lb__btn:focus-visible {
	background: rgba(255, 255, 255, 0.14);
}

.ivd-lb .ivd-lb__btn:focus-visible,
.ivd-lb .ivd-lb__nav:focus-visible,
.ivd-lb .ivd-lb__thumb:focus-visible {
	outline: 2px solid var(--ivd-gold);
	outline-offset: 2px;
}

.ivd-lb svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ivd-lb .ivd-lb__stage {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 72px;
	overflow: hidden;
	touch-action: pan-y;
}

.ivd-lb .ivd-lb__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
}

.ivd-lb.is-zoomed .ivd-lb__stage {
	display: block;
	overflow: auto;
	touch-action: auto;
}

.ivd-lb.is-zoomed .ivd-lb__img {
	max-width: none;
	max-height: none;
	margin: 0 auto;
	cursor: zoom-out;
}

.ivd-lb .ivd-lb__nav,
.ivd-lb .ivd-lb__nav:hover,
.ivd-lb .ivd-lb__nav:focus {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.35);
	transform: translateY(-50%);
}

.ivd-lb .ivd-lb__nav:hover {
	background: rgba(0, 0, 0, 0.6);
}

.ivd-lb .ivd-lb__nav--prev {
	left: 12px;
}

.ivd-lb .ivd-lb__nav--next {
	right: 12px;
}

.ivd-lb .ivd-lb__thumbs {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
	padding: 12px 16px 16px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.ivd-lb .ivd-lb__thumb,
.ivd-lb .ivd-lb__thumb:hover,
.ivd-lb .ivd-lb__thumb:focus {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	opacity: 0.55;
	cursor: pointer;
	box-shadow: none;
	transition: opacity 0.2s, border-color 0.2s;
}

.ivd-lb .ivd-lb__thumb:first-child {
	margin-left: auto;
}

.ivd-lb .ivd-lb__thumb:last-child {
	margin-right: auto;
}

.ivd-lb .ivd-lb__thumb:hover,
.ivd-lb .ivd-lb__thumb.is-active {
	opacity: 1;
}

.ivd-lb .ivd-lb__thumb.is-active {
	border-color: var(--ivd-gold);
}

.ivd-lb .ivd-lb__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ivd-lb .ivd-lb__toast {
	position: absolute;
	bottom: 110px;
	left: 50%;
	padding: 8px 18px;
	border-radius: 999px;
	background: #fff;
	color: #222;
	font-size: 14px;
	transform: translateX(-50%);
}

@media (max-width: 767px) {
	.ivd-lb .ivd-lb__stage {
		padding: 0 8px;
	}

	.ivd-lb .ivd-lb__nav,
	.ivd-lb .ivd-lb__nav:hover,
	.ivd-lb .ivd-lb__nav:focus {
		width: 40px;
		height: 40px;
	}

	.ivd-lb .ivd-lb__nav--prev {
		left: 6px;
	}

	.ivd-lb .ivd-lb__nav--next {
		right: 6px;
	}

	.ivd-lb .ivd-lb__thumb,
	.ivd-lb .ivd-lb__thumb:hover,
	.ivd-lb .ivd-lb__thumb:focus {
		width: 56px;
		height: 56px;
	}
}
