@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:700|Roboto:300,700');
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
      height: 100%;
    margin: 0; /* Removes default margin */
    background: #333;
  
}

.basic-example {
  display: flex;
}

.text p:target { background: red; }

.header-navigation nav ul {
  list-style-type: none;
  padding: 0;
}

.header-navigation nav ul li {
  display: inline;
  margin-right: 20px;
}

.header-navigation nav ul li a {
  text-decoration: none;
  color: #fff; /* Change as needed */
}

/* Add more styles as needed */
.sidebar {
  float: left;
  width: auto;
  padding: 20px;
  background-color: #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height:100vh;
  font-family: 'Roboto', sans-serif;
  color: #fff; /* Font color set to white */
  font-size: 1em; /* Font size set to scale with the page */
}

.sidebar a.active {
  color: blue;
  font-weight: bold; /* Optionally, make the text bold */
}

/* .button {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: limegreen;
  padding: .5em 1.25em;
} */

.portfolio {
  display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Creates as many 250px columns as can fit */

  grid-gap: 1em;
  background: #333;
  padding: 1em 1em;
  align-items: start; /* Justifies items to the top */
  transform-origin: center;
  }

.portfolio__item {
  position: relative;
  min-width: 200px; /* Fixed width at 200px */
  min-height: 200px; /* Fixed height at 200px */
  margin: auto; /* Centering horizontally */
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  align-items: center; /* Centering content vertically */
  justify-content: center; /* Centering content horizontally */
  padding: auto;
  background: rgb(88, 87, 87);
  border-radius: 5px; /* Radius corners 5px */
  transition: grid-template-columns 0.25s ease; /* Smooth transition for grid changes */
}

/* Additional styles for different ratings */
.portfolio__item[rating="1"] {
  background: rgba(0, 0, 255, 0.25); /* Gold background for 1st place */
}

.portfolio__item[rating="2"] {
  background: rgba(255, 0, 0, 0.253); /* Silver background for 2nd place */
}

.portfolio__item[rating="3"] {
  background: rgba(255, 255, 255, 0.28); /* Bronze background for 3rd place */
}

.portfolio__item[rating="4"] {
  background: rgba(255, 255, 0, 0.25); /* Light blue background for Honorable Mention */
}

.portfolio__item[rating="out"] {
  background: black;
  opacity: 0.25; /* Makes the image 50% visible (50% transparent) for items out of consideration */
} 


.portfolio__item:hover {
  border: 2px solid black; /* Adds a black border on hover */
}

.portfolio__image {
  max-width: 180px; /* Ensures the image does not exceed the container's width */
  max-height: 180px; /* Ensures the image does not exceed the container's height */
  object-fit: cover; /* Adjusts the image size to cover the container while maintaining its aspect ratio */
  margin-bottom: 5px; /* Adjust as needed */
}


.portfolio__desc {
  display: flex;
  width: 100%; /* Adjusted to take full width */
  align-items: flex-start; /* Aligns items to the start (left) */
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: white;
  font-size: 1em;
  letter-spacing: 1px;
  /* margin-top: 1em; Pushes to the bottom */
  text-align: center; /
  padding-left: 10em; /* Adds left padding of 2em */
}


.portfolio__title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 800;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0;
  color: white;
}

/* .portfolio__image{
  width: 200px;
  display: block;
} */
.lightbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
  position: absolute;
  color: white;
  background: rgba(0, 0, 0, 0.90);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
  width: 85vw;
  height: auto;
  z-index: 100; 
  transform: translate(-50%, -50%) scale(0); /* Adjust for centering and initial scale */
}


  
  .portfolio-lightbox__content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 50%;
    max-width: 100%; /* Ensure it doesn't exceed the viewport width */
    max-height: 100%; /* Ensure it doesn't exceed the viewport height */
    overflow: hidden; /* Prevents scrolling */
  }
  .portfolio-lightbox__content > * {
    flex-shrink: 1; /* Allows flex items to shrink if necessary */
  }

  .portfolio-lightbox__row {
    display: flex;
    flex-direction: row;
    gap: 1em;
    width: auto;
    /* max-width: 100vh; */
    margin: auto;
    
  }

  .portfolio-lightbox__image,
.portfolio-lightbox__caption {
  vertical-align: top;
}
  
  .centered-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
  }

  .left-column, .right-column {
    display: flex;
    flex-direction: column; /* Change to column to manage items inside vertically */
    align-items: center; /* Center items horizontally inside the columns */
    justify-content: center; /* Center items vertically inside the columns */
    flex: 1;
    width: auto;
    height: auto;
    z-index: 1;
  }
 
  
  .portfolio-lightbox__image {
    max-width: 90%; /* Slightly less than the container to ensure padding */
    max-height: 90%; /* Slightly less than the container to ensure padding */
    width: auto; /* Allows the image to scale its width automatically */
    height: auto; /* Allows the image to scale its height automatically */
    object-fit: contain; /* Maintains aspect ratio without cropping */
  }

  @media (max-width: 768px) {
    .portfolio-lightbox__image {
      max-width: 95%; /* Allows more room for the image to scale down */
      max-height: 95%;
    }
  }

 @media (orientation: portrait) {
    .portfolio-lightbox__image {
      height: calc(100vh - 100px);  
    }
  } 
  @media (orientation: landscape) {
    .portfolio-lightbox__content {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 1600px;
      height: 100%;
      overflow: hidden; /* Ensures no scrolling occurs */
    }
  
    .portfolio-lightbox__image {
      max-width: 90vw; /* Limits the image's width to 90% of the viewport width */
      max-height: 90vh; /* Limits the image's height to 90% of the viewport height */
      width: auto; /* Scales the width automatically to maintain aspect ratio */
      height: auto; /* Scales the height automatically to maintain aspect ratio */
      object-fit: contain; /* Ensures the image fits within its bounds while maintaining aspect ratio */
    }
  }

  /* @media (aspect-ratio: 1/1) {
    .portfolio-lightbox__image {
      max-height: 60vh;
    }
  } */

  @media (max-width: 600px) {
    .portfolio-lightbox__content {
      flex-direction: column;
    }
  }
  
  /* Assuming .portfolio-lightbox__text wraps both caption and rating */
  .portfolio-lightbox__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures separation */
    align-items: flex-start; /* Aligns items to the start of the cross axis */
    width: auto; /* Adjust if necessary */    
  }
  
  .portfolio-lightbox__caption {
    /* width: 100%; */
    max-height: 35vh; /* Adjust based on your needs */
    overflow-y: auto; /* Allows scrolling for overflow content */
    color: rgb(241, 241, 245);
    font-size: 1em;
    margin-top: 0; /* Ensures it's at the top */
      }

/* Custom styles for radio buttons in Material Dark theme */
input[type="radio"] {
  /* Adjust the appearance to be more subtle and fit the dark theme */
  appearance: none;
  background-color: #424242; /* Dark background */
  border: 2px solid #757575; /* Slightly lighter border */
  width: 20px;
  height: 20px;
  border-radius: 50%; /* Circular radio buttons */
  cursor: pointer; /* Change cursor to pointer to indicate clickable area */
  vertical-align: middle; /* Align with the text */
  margin-right: 8px; /* Space between radio button and label */
}

input[type="radio"]:checked {
  background-color: #4CAF50; /* Material Green for checked state */
  border-color: #4CAF50;
}

/* Style for the label that wraps around each radio button */
label.form-control {
  display: flex;
  align-items: center; /* Align radio button and text */
  margin-bottom: 10px; /* Add some space between each radio button */
  cursor: pointer;
  color: #E0E0E0; /* Light grey text for better readability on dark background */
}

/* Custom style for checked (selected) radio buttons */
input[type="radio"]:checked + label {
  font-weight: bold; /* Make the label text bold when selected */
}

/* Alternatively, if your HTML structure does not place the label *after* the input, you might need JavaScript to add a class to the checked label. */
    
      
  .remove-consideration-btn {
    background-color: rgb(165, 160, 160); /* Matches the rating background */
    color: rgb(12, 12, 13); /* Matches the rating text color */
    font-size: 1em; /* Matches the general font size */
    padding: 5px 10px; /* Provides padding around the text */
    border-radius: 20px; /* Rounds the corners */
    border: none; /* Removes the default border */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition for background color */
    display: block; /* Makes the button a block element */
    margin: 0 auto; /* Centers the button horizontally */
  }

  .remove-consideration-btn:hover {
    background-color: rgb(140, 135, 135); /* Lightens the background on hover */
  }
  
  .portfolio-lightbox__rating {
   /* margin-top: auto; Pushes the caption to the top */
    color: rgb(12, 12, 13);
    font-size: 1em;
    background-color: rgb(165, 160, 160); /* Gives a white background */
    padding: 5px; /* Adds some padding around the content */
    border-radius: 20px; /* Radius the corners */
    width: 100%;
  }

  
.portfolio-lightbox:target {
  transform: scale(1,1);
  transform-origin: left; 

}

.portfolio-lightbox__footer{
  display: flex;
  flex-direction: row; /* This is correct for a row of items, but ensure it's at the end of the container */
  align-items: center; /* Align items in the center vertically within the footer */
  gap: 1em;
  width: 100%; /* Ensure it spans the full width of the lightbox */
  margin-top: auto; /* This pushes the footer to the bottom if .portfolio-lightbox is a flex container */
}

.portfolio__lightbox__image { margin-bottom: 1em; }

.close {
  position: absolute;
  right: -1em;
  top: -1em;
  border: white 2px solid;
  display: flex;
  width: 2em;
  height: 2em;
  background: red;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.close::after {
  content: 'x';
  color: white;
}


