/* Centered logo overlay */
#logo-overlay {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
/* Ensures the logo is on top */
	pointer-events: none;
/* Allows interaction with the gallery behind the logo */
}

/* Optional: Adjust logo size */
#logo-overlay img {
	max-width: 150px;
/* Adjust the size as needed */
	height: auto;
}

/* Hide the Jetpack carousel action bar */
.jp-carousel-info {
	display: none !important;
/* Hides the action bar */
}

#actionbar {
	display: none;
}

/* Remove margin and padding from all figure elements */
.wp-block-gallery figure {
	margin: 0 !important;
	padding: 0 !important;
}

/* Ensure the gallery takes full width and is properly aligned */
.wp-block-gallery {
	margin: 0 auto !important;
/* Center the gallery */
	padding: 0 !important;
/* Remove padding */
	width: 100% !important;
}

/* Reset any potential padding or margin at the bottom of the gallery */
.wp-block-gallery:last-of-type {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Ensure the footer sits directly below the gallery */
footer {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Reset any potential margin or padding on the images */
.wp-block-image {
	margin: 0 !important;
	padding: 0 !important;
}

/* Specifically target the image container within the gallery to ensure no gap */
.wp-block-gallery.has-nested-images.columns-5.is-cropped {
	margin-bottom: 0 !important;
}

/* Lastly, reset the margin for the site content, main area, and footer */
.site-content,
.content-area,
.site-main {
	margin-bottom: 0 !important;
}

/* Remove margin and padding for all elements */
* {
	margin: 0 !important;
	padding: 0 !important;
}

/* Reset line height to avoid gaps */
body {
	line-height: 1 !important;
}

/* Specific resets for gallery elements */
.jp-carousel-info-extra,
.jp-carousel-image-meta,
.jp-carousel-photo-title-container,
.jp-carousel-comments-wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

/* Ensure images are displayed correctly */
.jp-carousel-image {
	display: block !important;
/* Ensure images are treated as block elements */
	max-width: 100%;
/* Make sure they do not exceed their container */
	height: auto;
/* Maintain aspect ratio */
}

/* If using flex, make sure there's no gap */
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
/* Center items */
	gap: 0 !important;
/* Ensure no gaps */
}

/* For images, ensuring they are properly contained */
.gallery img {
	display: block;
/* Avoid inline spacing */
	max-width: 100%;
/* Scale images within their container */
	height: auto;
/* Maintain aspect ratio */
}

.jp-carousel-wrap {
	height: 951px !important;
/* Ensure height is set */
	overflow: hidden;
/* Optional, to prevent overflow */
}

.jp-carousel img {
	height: 951px !important;
/* Ensure images are this height */
	width: auto !important;
/* Maintain aspect ratio */
	object-fit: cover !important;
/* Optional, cover the area */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
	.jp-carousel-wrap {
		height: calc(100vh - 44px) !important;
	/* Adjusting height for address bar */
		overflow: hidden !important;
	/* Prevent overflow */
		padding: 0 !important;
	/* Remove padding */
		margin: 0 !important;
	/* Remove margin */
	}
	
	.jp-carousel img {
		width: 100% !important;
	/* Full width */
		height: auto !important;
	/* Maintain aspect ratio */
		max-height: calc(100vh - 44px) !important;
	/* Adjust for address bar */
		object-fit: cover !important;
	/* Cover to fill the area */
		display: block;
	/* Prevent inline spacing */
	}
}

/* Galleries - override built-in responsiveness */
@media screen and (max-width:781px ) {
	.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc(30% - var(--wp--style--unstable-gallery-gap, 16px)/3);
	}
}

#logo-overlay {
	pointer-events: auto;
}