@font-face {
	font-family: "Kybernaut";
	src: url("../Kybernaut-Regular.otf") format("opentype");
}

:root {
	/* fonty */
	--font-basic: 'Inter', Arial, sans-serif;
	--font-kyberna: 'Kybernaut', 'Inter', Arial, sans-serif;
	/* řezy písma */
	--regular: 400;
	--medium: 500;
	--semibold: 650;
	--bold: 800;
	/* barevná paleta */
	--cnx-main: #ff4500;
	--cnx-black: #1b1c1d;
	--cnx-blackdark: #121212;
	--cnx-greylight: #c2c7ca;
	--cnx-greydark: #a1a5a8;
}

body {
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-family: var(--font-basic);
	font-weight: var(--regular);
	color: var(--cnx-black);
    display: flex;
    justify-content: center;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	color: #ffffff;
	background-color: var(--cnx-main);
}

*:focus {
	outline: none;
}

a {
	all: unset;
}

.container {
    max-width: 2000px;
    width: 100%;
}

.goback {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cnx-greylight);
    margin-bottom: 40px;
}

.goback a {
	cursor: pointer;
}

.goback a:hover {
	color: var(--cnx-main);
}



header {
    display: flex;
	justify-content: center;
	gap: 60px;
}

.main-image {
    max-width: 50%;
    max-height: 70vh;
	border-radius: 6px;
}

.article {
	width: 50%;
	max-width: 500px;
	padding-top: 50px;
}

h1 {
	font-size: 1.675rem;
	line-height: 2.5rem;
    font-family: 'Kybernaut', sans-serif;
	margin: 0;
	font-weight: normal;
}

h3 {
	margin: 8px 0 25px;
	font-weight: var(--regular);
	color: var(--cnx-greydark);
}

.content p {
	font-size: 1rem;
	line-height: 1.675rem;
}

.content strong {
	font-weight: var(--medium);
}

.content a {
	cursor: pointer;
	padding-bottom: 1px;
	border-bottom: 1px solid var(--cnx-main);
}

.content a:hover {
	color: var(--cnx-main);
}

.gallery {
	padding-top: 60px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 100px;
}

.gallery img {
	height: 200px;
	border-radius: 5px;
	cursor: pointer;
	transition: transform 0.2s;
}

.gallery img:hover {
	transform: scale(1.02);
}



.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s ease;
}

.lightbox.open img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  transform: translateY(0px) scale(1);
}



.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: block;
	background-color: transparent;
	background-position: center;
	background-size: 24px;
	background-repeat: no-repeat;
	border: none;
	color: white;
	height: 100vh;
	width: 5%;
	cursor: pointer;
	user-select: none;
}

.lightbox-nav.prev { 
	left: 0; 
	background-image: url(/previous.svg);
}

.lightbox-nav.next { 
	right: 0; 
	background-image: url(/next.svg);
}

.lightbox-close { 
	position: absolute;
	top: 5%;
	right: 0;
	display: block;
	background-color: transparent;
	background-position: center;
	background-size: 20px;
	background-repeat: no-repeat;
	border: none;
	background-image: url(/close.svg);
	width: 5%;
	height: 40px;
	cursor: pointer;
	z-index: 99;
}

.lightbox-nav:hover {
  opacity: 0.7;
}

.lightbox-close:hover {
  opacity: 0.7;
}




@media only screen and (max-width: 600px) {

    header {
		flex-direction: column;
		gap: 40px;
	}
	
	.main-image {
		max-width: 100%;
		width: 100%;
		max-height: 70vh;
		object-fit: cover;
	}

	.article {
		padding: 0;
		width: 100%;
	}

}