body {
    color: white;
    background-color: #222222;
    padding: 0;
    margin: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.navbar {
    width: 100%;
    height: 70px;
    background-color: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-wrap: wrap; /* Ensures children wrap on small screens */
}

.navitem,
.navitemrow,
.navitemcenter {
    display: flex;
    padding: 5px;
    text-align: center;
}

.navitem {
    flex-direction: column;
    margin: auto;
}

.navitemrow {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
}

.navitemcenter {
    flex-direction: column;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 5px;
}

.navheader,
.navparagraph {
    padding: 0;
    margin: 0;
}

.navlink,
.navlinkactive {
    color: white;
    text-decoration: none;
    padding: 5px;
}

.navlinkactive {
    color: rgb(194, 194, 194);
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
}

.mainvideo,
.videos {
    margin: 60px auto 0 auto;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
}

.map-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  margin: 20px auto;
  gap: 20px;
  justify-content: center;
}

.sidebar {
  flex: 1 1 300px;
  max-width: 400px;
  padding: 10px;
  background-color: #1e1e1e;
  color: white;
  border-radius: 20px;
  overflow-y: auto;
  max-height: 85vh;
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar .video-entry {
  margin-bottom: 15px;
  cursor: pointer;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.sidebar .video-entry:hover {
  background-color: #2a2a2a;
}

.map {
  flex: 2 1 600px;
  height: 85vh;
  border-radius: 20px;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .map-container {
    flex-direction: column;
    align-items: center;
  }

  .sidebar {
    width: 95%;
    max-height: 40vh;
  }

  .map {
    width: 95%;
    height: 50vh;
  }
}

/* Mobile breakpoint */
@media (max-width: 600px) {
  .sidebar {
    max-height: 35vh;
  }

  .map {
    height: 45vh;
  }
}

.photo-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
}

.photo-grid-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.photo-grid-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  z-index: 2;
}

/* New: photo container to position like button */
.photo-container {
  position: relative;
  display: inline-block;
}

/* Base Like button styling */
.like-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 12px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  font-size: 14px;
  color: #e0245e;
  transition: background 0.2s ease;
  z-index: 5;
}

.like-button:hover {
  background: rgba(255, 255, 255, 1);
}

/* Medium devices (tablets, 481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .like-button {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 10px;
  }
}

/* Small devices (phones, up to 480px) */
@media (max-width: 480px) {
  .like-button {
    top: 4px;
    right: 4px;
    padding: 2px 5px;
    font-size: 11px;
    border-radius: 8px;
  }
}


.photo-pagination {
  text-align: center;
  margin-bottom: 40px;
}

.photo-pagination button {
  padding: 8px 12px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 10px;
}

@media (max-width: 768px) {
  .photo-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 15px;
  }

  .photo-pagination button {
    padding: 6px 10px;
    margin: 0 5px;
  }
}

@media (max-width: 480px) {
  .photo-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    padding: 10px;
  }
}

/* Base container and form styling */
.containercontact {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  width: 100%;
  flex-direction: row;
}

.contactform {
  width: 100%;
  max-width: 600px;
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  box-sizing: border-box;
  text-align: center;
}

.contactform form {
  display: flex;
  flex-direction: column;
}

.contactform label {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #f0f0f0;
  font-size: 1rem;
}

.contactform input,
.contactform textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #2c2c2c;
  color: #fff;
  outline: none;
  resize: vertical;
  width: 95%;
}

.submit-btn {
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #494677;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #35334e;
}

@media (max-width: 768px) {
  .submit-btn {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .submit-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px;
  }
}


.contactform input:focus,
.contactform textarea:focus {
  border-color: #888;
}

/* Specific to message input: make it a textarea */
#message {
  min-height: 120px;
}

/* Responsive typography and layout */
@media (max-width: 768px) {
  .contactform {
    padding: 20px;
  }

  .contactform label {
    font-size: 0.95rem;
  }

  .contactform input,
  .contactform textarea {
    font-size: 0.95rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .contactform {
    padding: 15px;
  }

  .contactform label {
    font-size: 0.9rem;
  }

  .contactform input,
  .contactform textarea {
    font-size: 0.9rem;
    padding: 8px;
  }
}


.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.modal-nav button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
  .modal-content {
    max-width: 95%;
  }

  .modal-nav button {
    font-size: 24px;
    padding: 8px;
  }
}



.header {
    margin-top: 50px;
    padding: 0;
    height: 20px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .navitemcenter {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: 10px auto;
    }

    .mainvideo,
    .videos {
        width: 95%;
        margin-top: 30px;
    }

    .header {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navlink,
    .navlinkactive {
        padding: 3px;
        font-size: 0.9rem;
    }

    .header {
        font-size: 0.9rem;
    }
}
