* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background: #111;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tagline {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #999;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

.gallery {
  padding: 40px 50px 80px;
}

.gallery-header {
  text-align: center;
  padding: 40px 0 60px;
}

.gallery-header h1 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.gallery-header p {
  color: #999;
  font-size: 14px;
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  max-width: 1800px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #1a1a1a;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.close:hover {
  opacity: 1;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  padding: 20px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.prev:hover, .next:hover {
  opacity: 1;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.social-footer {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid #222;
}

.social-footer a {
  color: #999;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 15px;
  transition: color 0.3s;
}

.social-footer a:hover {
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1800px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1a1a1a;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.portfolio-item-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    padding: 20px;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
  }
  
  .gallery {
    padding: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-header h1 {
    font-size: 24px;
  }
}

.protected-img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

.gallery-item,
.portfolio-item {
  pointer-events: auto;
}

.gallery-item img,
.portfolio-item img,
.lightbox img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-drag-image: none;
  drag-image: none;
}



.print-warning {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  
  .print-warning {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    color: #fff;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 999999;
  }
  
  .print-warning::before {
    content: "⚠️";
    font-size: 72px;
    margin-bottom: 20px;
  }
  
  .print-warning::after {
    content: "Screenshot detected and blocked.\nAll images are protected by copyright.\n© zavadskis.photo";
    font-size: 18px;
    white-space: pre-line;
    margin-top: 20px;
    color: #999;
  }
}

.copyright {
  text-align: center !important;
  padding: 40px 20px;
  color: #555;
  background: #111;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
}

.copyright p {
  margin: 0;
  text-align: center !important;
}
