/**
 * Vibe Artist - Responsive CSS Foundation (Stage 2)
 *
 * Breakpoints for Desktop (1440px+), Laptop (1024px-1439px),
 * Tablet (769px-1023px), Mobile (<= 768px), and Small Mobile (<= 480px).
 *
 * @package Vibe_Artist
 * @version 1.0.0
 */

/* ==========================================================================
   1. Laptop & Tablet Landscapes (Tablet: 769px - 1024px)
   ========================================================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
	.custom-logo-link img,
	.custom-logo,
	.site-logo-img {
		width: var(--va-logo-width-tablet, 130px);
	}
}

@media screen and (max-width: 1100px) {
	.vibe-featured-grid,
	.vibe-about-grid,
	.vibe-contact-grid {
		gap: clamp(2rem, 4vw, 3.5rem);
	}

	.vibe-gallery-item:nth-child(1) { grid-column: span 12; aspect-ratio: 16 / 9; }
	.vibe-gallery-item:nth-child(2) { grid-column: span 6; aspect-ratio: 1 / 1; }
	.vibe-gallery-item:nth-child(3) { grid-column: span 6; aspect-ratio: 1 / 1; }
	.vibe-gallery-item:nth-child(4) { grid-column: span 6; aspect-ratio: 1 / 1; }
	.vibe-gallery-item:nth-child(5) { grid-column: span 6; aspect-ratio: 1 / 1; }
	.vibe-gallery-item:nth-child(6) { grid-column: span 12; aspect-ratio: 16 / 9; }
	.vibe-gallery-item:nth-child(7) { display: none; }
}

/* ==========================================================================
   2. Medium Tablet & Small Laptops (<= 920px)
   ========================================================================== */
@media screen and (max-width: 920px) {
	.vibe-featured-grid {
		grid-template-columns: 1fr;
		max-width: 580px;
		margin: 0 auto;
	}

	.vibe-about-grid {
		grid-template-columns: 1fr;
		max-width: 620px;
		margin: 0 auto;
	}

	.vibe-about-image-wrap {
		max-height: 480px;
	}

	.vibe-contact-grid {
		grid-template-columns: 1fr;
	}

	.vibe-tour-row {
		grid-template-columns: 100px 1.2fr 1fr auto;
		gap: 1rem;
	}

	.footer-top {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}

	.footer-nav ul {
		justify-content: center;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}

/* ==========================================================================
   3. Mobile Devices (<= 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
	/* Header and Navigation adjustments */
	.main-navigation {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	/* Responsive Logo Sizing - Mobile (<= 768px) */
	.custom-logo-link img,
	.custom-logo,
	.site-logo-img {
		width: var(--va-logo-width-mobile, 110px);
	}

	.site-header.logo-position-center .site-branding {
		max-width: calc(100% - 110px);
	}

	/* Single-screen Hero on Mobile (100svh) */
	.vibe-hero,
	.vibe-hero-slider {
		height: 100vh !important;
		height: 100svh !important;
		height: 100dvh !important;
		min-height: 100vh !important;
		min-height: 100svh !important;
		min-height: 100dvh !important;
		max-height: 100vh !important;
		max-height: 100svh !important;
		max-height: 100dvh !important;
		padding-bottom: 0;
		overflow: hidden !important;
	}

	.vibe-hero-social-rail {
		left: calc(12px + env(safe-area-inset-left, 0px));
		gap: 10px;
		z-index: 30;
	}

	.vibe-hero-social-item {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	.vibe-hero-social-item svg {
		width: 20px;
		height: 20px;
	}

	.vibe-hero-content-minimal {
		padding-left: calc(58px + env(safe-area-inset-left, 0px));
		padding-right: calc(58px + env(safe-area-inset-right, 0px));
		bottom: calc(clamp(3.5rem, 8.5vh, 4.75rem) + env(safe-area-inset-bottom, 0px));
	}

	.vibe-hero-indicator {
		bottom: calc(clamp(0.85rem, 2vh, 1.4rem) + env(safe-area-inset-bottom, 0px));
		gap: 10px;
	}

	.vibe-hero-release-title {
		font-size: clamp(1.15rem, 4.8vw, 1.65rem);
		letter-spacing: 0.12em;
		line-height: 1.25;
		word-break: break-word;
		overflow-wrap: break-word;
	}

	.vibe-hero-btn-primary {
		padding: 0.8rem 2rem;
		font-size: 0.75rem;
		min-height: 44px;
	}

	/* Right-Side Overlay Panel on Tablet & Mobile (Zero Clipping) */
	.vibe-menu-panel,
	.vibe-mobile-menu {
		width: min(88vw, 420px);
		max-width: 100vw;
		padding: 0;
	}

	.vibe-panel-link {
		font-size: clamp(1.2rem, 5vw, 1.65rem);
		letter-spacing: 0.12em;
	}

	/* Music Grid */
	.vibe-music-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}

	/* Video Caption */
	.vibe-video-caption {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	/* Gallery Grid */
	.vibe-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.vibe-gallery-item:nth-child(n) {
		grid-column: span 1 !important;
		aspect-ratio: 1 / 1 !important;
	}

	.vibe-gallery-item:nth-child(1) {
		grid-column: span 2 !important;
		aspect-ratio: 16 / 10 !important;
	}

	/* Tour Rows into Card Structure */
	.vibe-tour-row {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"date status"
			"location location"
			"action action";
		row-gap: 0.75rem;
		padding: 1.25rem 0;
	}

	.vibe-tour-date {
		grid-area: date;
		font-size: var(--text-lg);
	}

	.vibe-tour-status-wrap {
		grid-area: status;
		justify-content: flex-end;
	}

	.vibe-tour-location {
		grid-area: location;
	}

	.vibe-tour-action {
		grid-area: action;
		text-align: left;
	}

	.vibe-tour-action .vibe-btn {
		width: 100%;
	}

	/* Newsletter Form */
	.vibe-newsletter-form {
		flex-direction: column;
		width: 100%;
	}

	.vibe-newsletter-input,
	.vibe-newsletter-form .vibe-btn {
		width: 100%;
	}

	/* Lightbox Mobile Adjustments */
	.vibe-lightbox-nav {
		width: 44px;
		height: 44px;
		font-size: 1.75rem;
	}

	.vibe-lightbox-nav.prev { left: 10px; }
	.vibe-lightbox-nav.next { right: 10px; }
}

/* ==========================================================================
   4. Small Smartphones (<= 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
	.site-branding {
		max-width: calc(100% - 60px);
	}

	.site-header.logo-position-center .site-branding {
		max-width: calc(100% - 110px);
	}

	.vibe-hero-content-minimal {
		padding-left: calc(52px + env(safe-area-inset-left, 0px));
		padding-right: calc(52px + env(safe-area-inset-right, 0px));
		bottom: calc(clamp(3.25rem, 8vh, 4.25rem) + env(safe-area-inset-bottom, 0px));
	}

	.vibe-hero-release-title {
		font-size: clamp(1rem, 4.6vw, 1.35rem);
		letter-spacing: 0.1em;
	}

	.vibe-hero-social-rail {
		left: calc(8px + env(safe-area-inset-left, 0px));
		gap: 8px;
	}

	.vibe-hero-social-item {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}

	.vibe-hero-social-item svg {
		width: 18px;
		height: 18px;
	}

	.vibe-hero-indicator {
		bottom: calc(clamp(0.75rem, 1.8vh, 1.25rem) + env(safe-area-inset-bottom, 0px));
	}

	.vibe-music-grid {
		grid-template-columns: 1fr;
	}

	.vibe-about-meta {
		flex-direction: column;
		gap: 1rem;
	}

	.vibe-modal-close,
	.vibe-lightbox-close {
		top: -40px;
		right: 0;
	}

	.connect-input-group {
		flex-direction: column;
	}

	.connect-submit-btn {
		width: 100%;
	}
}

/* ==========================================================================
   5. Stage 4 Responsive Enhancements (Hero Slider & Minimal Pages)
   ========================================================================== */
@media screen and (max-width: 900px) {
	.about-editorial-layout {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.about-photo-frame {
		max-height: 540px;
		aspect-ratio: 4 / 3;
	}

	.single-music-editorial-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.single-music-artwork-wrap {
		max-width: 480px;
		margin: 0 auto;
	}

	.single-music-credits-section {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.event-row-item {
		grid-template-columns: 100px 1fr auto;
		grid-template-areas:
			"date city status"
			"action action action";
		row-gap: 1rem;
	}

	.event-date-col { grid-area: date; }
	.event-details-col { grid-area: city; }
	.event-status-col { grid-area: status; justify-content: flex-end; }
	.event-action-col { grid-area: action; }
	.event-action-col .vibe-btn { width: 100%; }
}

@media screen and (max-width: 640px) {
	.vibe-hero-social-floating {
		display: none;
	}

	.vibe-slider-controls {
		right: 1rem;
		bottom: 1.5rem;
	}

	.vibe-slider-btn {
		width: 38px;
		height: 38px;
	}

	.music-editorial-grid {
		grid-template-columns: 1fr;
	}

	.video-editorial-grid {
		grid-template-columns: 1fr;
	}

	.gallery-editorial-grid {
		grid-template-columns: 1fr;
	}

	.event-row-item {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"date status"
			"city city"
			"action action";
	}
}

/* ==========================================================================
   6. Mobile Landscape Viewports (Max Height <= 500px)
   ========================================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.site-header {
		height: 48px !important;
	}

	.vibe-hero-social-rail {
		top: 50%;
		gap: 6px;
	}

	.vibe-hero-social-item {
		width: 36px;
		height: 36px;
		min-width: 36px;
		min-height: 36px;
	}

	.vibe-hero-social-item svg {
		width: 16px;
		height: 16px;
	}

	.vibe-hero-content-minimal {
		bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
		padding-left: calc(52px + env(safe-area-inset-left, 0px));
		padding-right: calc(52px + env(safe-area-inset-right, 0px));
	}

	.vibe-hero-subtitle {
		display: none;
	}

	.vibe-hero-release-title {
		font-size: 1rem;
		line-height: 1.15;
	}

	.vibe-hero-btn-primary {
		padding: 0.5rem 1.4rem;
		font-size: 0.7rem;
		min-height: 36px;
	}

	.vibe-hero-indicator {
		display: none;
	}
}



/* Olafunmi responsive refinements */
@media screen and (max-width: 768px) {
	.vibe-hero-identity {
		left: calc(1rem + env(safe-area-inset-left, 0px));
		bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
		max-width: calc(100% - 2rem);
	}
	.vibe-hero-identity-name {
		font-size: clamp(2.8rem, 15vw, 5rem);
		letter-spacing: .035em;
	}
	.vibe-hero-identity-role,
	.vibe-hero-identity-motto {
		font-size: clamp(.62rem, 2.3vw, .78rem);
		letter-spacing: .15em;
	}
	.vibe-hero-social-rail {
		left: calc(.5rem + env(safe-area-inset-left, 0px));
	}
	.about-photo-frame { aspect-ratio: 4 / 3; }
	.contact-page-container { padding-top: 7rem; }
	.footer-social-inline { justify-content: center; }
}

@media screen and (max-width: 480px) {
	.vibe-hero-identity-name { font-size: clamp(2.55rem, 14vw, 4rem); }
	.vibe-hero-identity-role,
	.vibe-hero-identity-motto { letter-spacing: .11em; }
	.footer-social-item { width: 34px; height: 34px; }
}

/* ========================================================================
   Olafunmi Mobile Hero Release + Legal Line
   Keep the release message closer to the visual centre and reserve a
   dedicated, readable area at the bottom of the slide for the legal text.
   ======================================================================== */
@media screen and (max-width: 768px) {
	.front-page-main .olafunmi-hero-release {
		left: 50%;
		bottom: 19vh;
		width: min(88vw, 520px);
		padding: 0;
		transform: translateX(-50%);
		gap: .8rem;
	}

	.front-page-main .olafunmi-hero-release-title {
		font-size: clamp(1.65rem, 8vw, 2.35rem);
		line-height: 1.05;
		letter-spacing: .085em;
		white-space: nowrap;
	}

	.front-page-main .olafunmi-hero-listen {
		min-width: 118px;
		min-height: 44px;
		padding: .72rem 1.55rem;
	}

	.front-page-main .olafunmi-hero-legal {
		left: 50%;
		bottom: calc(.65rem + env(safe-area-inset-bottom, 0px));
		width: calc(100% - 1.25rem);
		max-width: 420px;
		min-height: 42px;
		padding: .55rem .65rem;
		transform: translateX(-50%);
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		column-gap: .5rem;
		row-gap: .2rem;
		white-space: normal;
		font-size: clamp(.52rem, 1.75vw, .62rem);
		line-height: 1.35;
		letter-spacing: .025em;
		color: rgba(255,255,255,.9);
		background: rgba(0,0,0,.42);
		border: 1px solid rgba(255,255,255,.12);
		border-radius: 8px;
		box-shadow: 0 8px 24px rgba(0,0,0,.25);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(5px);
	}

	.front-page-main .olafunmi-hero-legal span {
		display: inline-block;
		white-space: nowrap;
	}

	.front-page-main .olafunmi-hero-legal span + span::before {
		margin-right: .5rem;
	}

	.front-page-main .vibe-hero-indicator {
		bottom: calc(4.65rem + env(safe-area-inset-bottom, 0px));
	}
}

@media screen and (max-width: 380px) {
	.front-page-main .olafunmi-hero-release {
		bottom: 20vh;
		width: calc(100% - 5rem);
	}

	.front-page-main .olafunmi-hero-release-title {
		font-size: clamp(1.42rem, 7.6vw, 1.85rem);
		letter-spacing: .065em;
	}

	.front-page-main .olafunmi-hero-legal {
		width: calc(100% - 1rem);
		padding: .5rem .45rem;
		font-size: .5rem;
	}
}


/* V17 Olafunmi hero: single clean portrait layer, no duplicated background image */
.front-page-main .vibe-hero-slide {
	background-image: none !important;
	background-size: auto;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #3f020b;
}
.front-page-main .vibe-hero-slide:nth-child(2) {
	background-color: #40030c;
}
.front-page-main .vibe-hero-media-wrap {
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.front-page-main .vibe-hero-media {
	object-fit: contain;
	object-position: center center;
	background: transparent;
	width: auto;
	height: 100%;
	max-width: none;
	margin: 0 auto;
	transform-origin: center center;
}
.front-page-main .vibe-hero-slide.is-active .vibe-hero-media {
	animation: olafunmiPortraitMotionV17 8s ease-in-out infinite;
}
@keyframes olafunmiPortraitMotionV17 {
	0%, 100% { transform: translate3d(0, 4px, 0) scale(1.055); }
	50% { transform: translate3d(0, -3px, 0) scale(1.075); }
}
@media screen and (min-width: 769px) {
	.front-page-main .vibe-hero-media {
		height: 100%;
		width: auto;
		max-width: none;
	}
}
@media screen and (min-width: 769px) and (max-width: 1100px) {
	.front-page-main .vibe-hero-media { transform: scale(1.035); }
}
@media screen and (max-width: 768px) {
	.front-page-main .vibe-hero-media {
		height: 100%;
		width: auto;
		max-width: none;
		margin: 0 auto;
	}
	.front-page-main .vibe-hero-slide.is-active .vibe-hero-media {
		animation-duration: 7s;
	}
}
@media screen and (max-width: 480px) {
	.front-page-main .vibe-hero-media { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
	.front-page-main .vibe-hero-slide.is-active .vibe-hero-media { animation: none !important; }
}
