/* Apply the font to the entire page */
.greek-page {
  font-family: 'Noto Sans', Arial, sans-serif;
}

/* Resetting default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: didot , serif;
  background-color: #fafafa;
  color: #262626;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Profile Header */
.profile-header {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
      
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  margin-left: 20px;
}

.profile-info h1 {
  font-size: 24px;
  font-weight: bold;
}

.profile-info .name {
  font-size: 16px;
  color: #8e8e8e;
}

.stats {
  margin: 10px 0;
}

.stats span {
  margin-right: 20px;
}

button {
  background-color:  #cd4f07;
    width: 80px;
  color: white;
  border: 1px solid white;
  padding: 10px 10px;
  border-radius: 0px;    
  cursor: pointer;
}

button:hover {
  background-color: #cf6a30;
}

/* Bio Section */
.bio {
  margin-top: 20px;
}

.bio p {
  font-size: 16px;
  line-height: 1.5;
}

/* Posts Grid */
.posts {
  margin-top: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
  cursor: pointer;
}

.text-post {
  background-color: #f0f0f0;
  width: 80%;    
      
  padding: 10px;
  border-radius: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.text-post p {
  margin: 0;
  font-size: 18px;
}

.post img:hover, .text-post:hover {
  opacity: 0.8;
}

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

.lightbox-content {
  background-color: none;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
  max-height: 80%;
  text-align: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: 85vh; /* Make sure the image doesn't exceed the screen size */
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  display: none; /* Initially hidden */
}

#lightbox-text {
  font-size: 16px; /* Responsive scalable font size - 1.5vw */
  background-color: white; 
  padding: 20px;    
  color: #333;
  line-height: 1.5;
  display: none; /* Initially hidden */
}


/* Make sure the image scales well */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
}

/* Overlay Position Classes */
.overlay-text.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.overlay-text.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.overlay-text.left {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.overlay-text.right {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.overlay-text.center {
  top: 50%;
  right: 10%;   
  transform: translateY(-50%);
}

/* Contact Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: red;
}


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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

/* Overlay Text Styles */
.overlay-text {
  position: absolute;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  max-width: 80%;
}

/* Overlay Position Classes */
.overlay-text.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.overlay-text.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.overlay-text.left {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.overlay-text.right {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  z-index: 1001;
  display: none; /* Hide buttons by default */    
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

#lightbox-prev {
  left: 10px;
}

#lightbox-next {
  right: 10px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 10px;
}

form input, form textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  margin-top: 20px;
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}

/* Image Post Container */
.post {
  position: relative;
  cursor: pointer;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* Semi-transparent black background */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; /* turn to 0 to Hide by default */
  transition: opacity 0.3s ease; /* Smooth fade-in effect */
}

/* Show overlay on hover */
.post:hover .image-overlay {
  opacity: 1;
}

/* Overlay Text */
.overlay-text {
  color: white;
  font-size: 16px;
  font-weight: bold;
  
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent background for text */
  border-radius: 5px;
}