/*Czcionki, ustawienia ogólne*/
*{
	font-family: 'Work Sans', Arial, Helvetica, sans-serif;
	box-sizing: border-box;
}
html{
	scroll-behavior: smooth;
}
body{
	font-family: 'Work Sans', Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	color: #111;
	background-color: black;
	overflow-x: hidden;
}
h1, h2, h3{
	font-family: 'Playfair Display', serif;
}
h3, h3 a{
	font-family: 'Playfair Display', serif;
	font-size: 25px;
	text-decoration: none;
	color: black;
}
/* Hero (obrazek w tle) */
.hero{
	height: 45vh;
	min-height: 350px;
	background-image: url('zdjecia/alto2.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.hero::after{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
	z-index: 1;
}
#hero-content{
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	z-index: 2;
	background: rgba(0, 0, 0, 0.1);
	padding: 20px;
}
#hero-content h1{
	color: white;
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	max-width: 800px;
	margin: 0;
}
/* Nawigacja */
header{
	position: absolute;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 1200px;
	padding: 0px 20px;
	display: flex;
	align-items: center;
	background-color: #FAFAFA;
	border-radius: 50px;
	z-index: 100;
}
#nawigacjalogo{
	margin-right: auto;
	transition: transform 900ms ease-out;
}
.hamburger{
	display: none;
	background: none;
	border: none;
	font-size: 30px;
	cursor: pointer;
	color: black;
	padding: 0;
}
.nav-links{
	display: flex;
	align-items: center;
}
.nawigacja{
	color: black;
	margin: 0px 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	transition: transform 900ms ease-out;
	text-decoration: none;
}
.nawigacja span{
	position: relative;
	display: inline-block;
	color: #000;
	font-size: 16px;
}
.nawigacja span::after{
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background: #75b5fd;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}
.nawigacja:hover span::after{
	transform: scaleX(1);
	transform-origin: left;
}
.nawigacja a{
	text-decoration: none;
	color: inherit;
}
.media{
	height: 20px;
	width: 20px;
	vertical-align: middle;
}
/* Main - treść */
main{
	width: 100%;
	margin-top: -40px;
	border-radius: 50px;
	background: #ffffff;
	display: flex;
	flex-direction: row;
	align-items: start;
	text-align: center;
	position: relative;
	z-index: 10;
	padding: 60px 20px;
}
#mainlewo, #mainprawo{
	width: 50%;
}
#mainlewo{
	transform: translateY(50%);
}
h4{
	font-size: 30px;
	font-weight: 800;
	color: red;
	font-family: 'Playfair Display', serif;
}
main p{
	max-width: 850px;
	line-height: 1.8;
	margin: 10px 0 30px 0;
}
.tytul{
	display: flex;
	align-items: center;
	text-align: center;
	gap: 15px;
	color: #333;
	font-weight: 700;
	width: 100%;
	max-width: 900px;
	margin: 40px 0 20px 0;
}
.tytul::before, .tytul::after{
	content: "";
	flex: 1;
	height: 2px;
	background: #eaeaea;
}
/* Stopka */
footer{
	width: 90%;
	max-width: 1200px;
	min-height: 200px;
	background-color: #1A1A1A;
	border-radius: 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 40px auto;
	padding: 40px;
}
#stopkalewo, #stopkaprawo{
	color: white;
}
#stopkalewo{
	text-align: left;
}
#stopkaprawo{
	text-align: right;
}
#stopkalewo p, #stopkaprawo p{
	margin: 5px 0;
}
#mail {
    color: white;
}
.telefon{
    transform: translateY(20%);
}
/* Styl samej miniatury na stronie */
.zoomable-img {
    width: 100%;
    max-width: 300px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}
.zoomable-img:hover {
    transform: scale(1.02);
}
/* Kontener Lightboxa (Tło) */
.modal-lightbox {
    display: none; /* Domyślnie ukryte */
    position: fixed;
    z-index: 9999; /* Bardzo wysoki, by był nad wszystkim */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Przyciemnienie */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
/* Powiększone zdjęcie */
.modal-img-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease; /* Płynne pojawianie się */
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Przycisk zamknij */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
/* Responsywność */
@media (max-width: 992px) {
	header {
		width: 95%;
		border-radius: 25px;
	}
	#nawigacjalogo h3 {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	main {
        flex-direction: column; /* NA TELEFONIE: jeden pod drugim */
        align-items: center;    /* Centrowanie wszystkiego */
        padding: 40px 20px;
        text-align: center;
    }

    #mainlewo, #mainprawo {
        width: 100%; /* Rozciągnięcie na całą szerokość ekranu */
		transform: translateY(0%);
    }

    #mainprawo {
        text-align: center;
    }

    #mainprawo .tytul {
        justify-content: center; /* Tytuł na środku na telefonie */
        margin-top: 20px;
    }

    #mainlewo img {
        max-width: 250px; /* Nieco mniejszy kompas na małym ekranie */
    }
	/* Menu mobilne */
	.hamburger {
		display: block;
	}
	.nav-links {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		background-color: #FAFAFA;
		border-radius: 20px;
		padding: 20px;
		box-shadow: 0 10px 20px rgba(0,0,0,0.1);
	}
	.nav-links.active {
		display: flex;
	}
	.nawigacja {
		margin: 10px 0;
		width: 100%;
		justify-content: center;
	}

	.tytul {
		justify-content: center;
		width: 100%;
		padding: 0 10px;
	}
	.tytul::before,
	.tytul::after {
		display: block;
		height: 1px;
	}
	.tytul h2 {
		text-align: center;
		flex-shrink: 0;
		margin: 0;
		transform: none !important;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}
	.quote-item {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}
	.quote-text, .author {
		text-align: center !important;
	}

	/* Stopka mobilna */
	footer {
		flex-direction: column;
		height: auto;
		padding: 30px 20px;
		text-align: center;
		gap: 30px;
	}
	#stopkalewo, #stopkaprawo {
		text-align: center;
		margin: 0;
		width: 100%;
	}
}