/**
 * 360 Broadway - Nova Child: Gallery Highlight and Filterable Gallery layouts.
 * Loaded only on pages that use it (see bw_css_components() in inc/enqueue.php).
 * Loads after style.css; rules keep their original order.
 */

.gallery_section {
    padding: 100px 0;
	overflow-x: hidden;
}
.gallery_inner {
    position: relative;
    padding: 0 15px;
}
.gallery_link {
    position: absolute;
    right: 0;
    bottom: 200px;
    padding-right: 40px;
    text-align: right;
}
.gallery_link:hover {
    padding-right: 60px;
}
.gallery_link {
    transition: all 0.3s;
}
.gallery_container .gallery_item {
    height: 100%;
    width: 100%;
}
a.gallery_item_link.gallery_item_1 {
    width: 40%;
    padding-top: 80px;
}
a.gallery_item_link.gallery_item_2 {
    width: 60%;
}
a.gallery_item_link.gallery_item_3 {
    width: 35%;
    padding-bottom: 90px;
}
.gallery_container .gallery_item {
    position: relative;
}
.gallery_container .gallery_item:hover span {
    opacity: 1;
}
.gallery_page_wrap a.gallery_item_link.gallery_item_3 {
    padding-bottom: 10px;
}
.gallery_page_wrap a.gallery_item_link.gallery_item_4 {
    width: 65%;
}
.gallery_page_wrap a.gallery_item_link.gallery_item_5 {
    width: 100%;
    height: 720px;
}
.gallery_page_wrap a.gallery_item_link.gallery_item_6 {
    width: 30%;
}
.gallery_page_wrap a.gallery_item_link.gallery_item_7 {
    width: 70%;
}
.gallery_page_wrap a.gallery_item_link.gallery_item_14 {
    width: 100%;
    height: 720px;
}

@media all and (max-width:  767px) {
	.gallery_section {
		    padding: 40px 0;
		}
	.gallery_inner {
		    padding: 0;
		}
	.gallery_link {
		    position: initial;
		    margin-top: 20px;
		    text-align: center;
		    padding: 0;
		}
	.gallery_link a::after {
		    display: none;
		}
	.gallery_has_link .gallery_container a:last-child {
		    padding: 0;
		}
	.gallery_container {
		    column-count: 1;
		    column-gap: 15px;
		}
	.gallery_container a {
		    width: 100% !important;
		    padding: 8px 0 !important;
		    height: 220px;
		}
	a.gallery_item_link.gallery_item_1,
		a.gallery_item_link.gallery_item_2 {
		    width: calc(50% - 7.5px) !important;
		    height: 150px;
		}
	.gallery_container {
		    column-gap: 0;
		    margin: 0 -15px;
		}
	a.gallery_item_link.gallery_item_1 {
		    margin-right: 7.5px;
		}
	a.gallery_item_link.gallery_item_2 {
		    margin-left: 7.5px;
		}
}

.home .gallery_section {
	margin-top: 40px;
	margin-bottom: 50px;
}
.gallery_section {
	padding: 20px 0;
}
.gallery_link {
	bottom: auto;
}
.gallery_link:hover {
	left: 60px;
}

@media (max-width: 400px) {
	.gallery-filters {
			gap: 15px;
			padding: 30px 15px;
		}
}

.gallery-filters button {
	position: relative;
	background: 0;
    border: 1px solid var(--bw-text);
	font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--bw-black);
    padding: 3px 10px;
	transition: all 0.2s;
}
.gallery-filters button::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 0;
	background: var(--bw-secondary);
	transition: all 0.2s;
	z-index: -1;
}
.gallery-filters button:hover::after {
	width: 100%;
}
.gallery-filters button:focus {
	outline: 0;
}
.gallery-filters button.active,
.gallery-filters button:hover {
	color: var(--bw-white);
}
.gallery-filters button.active::after {
	width: 100%;
}
.virtual-tour-iframe {
	width: 100%;
	aspect-ratio: 16/9;
}
.gallery_link {
    left: 40px;
    top: 30px;
	text-align: left;
}
a.gallery_item_link.gallery_item_1 {
    padding-top: 100px;
}
a.gallery_item_link.gallery_item_3 {
    width: 50%;
	padding-bottom: 0;
}
a.gallery_item_link.gallery_item_4 {
	padding-bottom: 90px;
}
.gallery_page_wrap a.gallery_item_link.gallery_item_4 {
	width: 50%;
}

@media (max-width: 768px) {
	.gallery_page_wrap a.gallery_item_link.gallery_item_5 {
			height: 460px;
		}
}

.bw-tabbed-gallery .gallery-filters button[aria-selected="true"] {
	/* .active mirrors this; kept for clarity */
}


/* Equal-height photos in the tabbed gallery mosaic (2026-10-27):
   neutralize the stagger paddings so every tile's photo renders at the
   same height. Desktop/tablet only — the mobile layout is already uniform. */
@media (min-width: 768px) {
	.bw-tabbed-gallery .gallery_container a.gallery_item_link {
		padding: 10px !important;
	}
	.bw-tabbed-gallery .gallery_container a.gallery_item_link .gallery_item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
}
