@import url("colors.css");

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 900;
  justify-content: center;
  align-items: center;
}

#overlay_pic{
  cursor: zoom-in;
}

#fullscreen_image_overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  cursor: zoom-out;
}

#fullscreen_image_overlay img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}



.grid {
  display: grid;
  justify-content: center;
  margin-top: 1vh;
  grid-template-columns: repeat(auto-fill, 267px);
  gap: 15px;
}

.grid_item {
  width: 260px;
}

.grid_pic_box {
  width: 267px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ddd;
  border: 1px solid #999;
  box-sizing: border-box;
}
.grid_pic_box:hover {
  transform: scale(1.15);
}
.grid_pic_box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.grid_pic_title {
  display: block;
  width: 267px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--txt_color);
  text-align: center;
}
.grid_pic_datas{
  display: none;
}


.pic_viewer_title{
	grid-area: title;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	background-color: var(--title_bg_color);
	color: var(--title_color);
	padding: 5px 10px;
	font-size: 14px;
	font-weight: normal;
}


.pic_viewer_pic{
	grid-area: pic;
	padding: 10px;
}
.pic_viewer_pic img {
	display: block;
	width: 100%;
	height: auto;
}


.pic_viewer_details {
	grid-area: details;
	width: 100%;
	box-sizing: border-box;
	padding: 15px;
	color:  var(--txt_color);
	font-size: 13px;
}
.pic_viewer_details table {
	width: 100%;
	border-collapse: collapse;
}
.pic_viewer_details td {
	padding: 3px 0;
	vertical-align: top;
}
.pic_viewer_details td:first-child {
	white-space: nowrap;
	padding-right: 15px;
}
.pic_viewer_details td:last-child {
	text-align: left;
}


.pic_viewer_description{
	grid-area: description;
	width: 100%;
	margin: 5px auto 0;
	padding: 5px 15px;
	box-sizing: border-box;
	color: var(--txt_color);
	font-size: 13px;
	line-height: 1.4;
  text-align: left;
}

#close_btn {
  display: none;
  cursor: pointer;
  margin-left: auto;
  font-weight: bold;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background-color: var(--bg_color);
  color: var(--txt_color);
  box-sizing: border-box;
  line-height: 1;
}

#close_btn:hover {
  box-shadow:
    0 0 4px rgba(172, 167, 147, 0.8),
    0 0 10px rgba(172, 167, 147, 0.4);
}

.inline_pic_viewer{
  display: grid;
  grid-template-columns: 2fr 1fr; 
  grid-template-areas:
    "title title"
    "pic details"
    "description description";
  gap: 0;
  background: var(--inv_bg_color);
  padding-bottom: 5px;
  max-width: 900px;
  box-sizing: border-box;
}


#pic_viewer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "title title"
    "pic details"
    "description description";
  width: 90%;
  background: var(--inner_window_bg);
  padding-bottom: 5px;
  box-sizing: border-box;
}

@media (max-width: 1150px) {
  .inline_pic_viewer,
  #pic_viewer {
    display: block;
    width: 95%;
  }

  .pic_viewer_pic {
    padding: 10px;
  }

  .pic_viewer_details {
    padding: 10px 15px;
  }

  .pic_viewer_description {
    width: 100%;
    padding: 5px 15px;
  }
}




