﻿/*
* Photo Gallery â€” Practice
* CSS Styles
*
* Start typing your code under these comments
*/

.photo {
    float: left;
    width: 25%;
}
.photo img {
    display: flex;
    text-align: right;
    width: 200px;
    height: 200px;
    object-fit: cover;
}
.photo a:hover {
    opacity: 0.8;
}
.photo a {
    display: block;
    position: relative;
}
.photo a:after {
    content: '';
    width: 52px;
    height: 35px;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    visibility: hidden;
}
.photo:hover> a:after {
    visibility: visible;
}
.photo figcaption {
    color: #999999;
    text-align: center;
    margin-top: 20px;
}
